ethtool: adjust struct ethtool_keee to kernel needs
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 27 Jan 2024 13:26:50 +0000 (14:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jan 2024 12:30:47 +0000 (12:30 +0000)
commit285cc15cc555b4f05ebf2556bc6e85a6d36b790a
tree82898bee722bee83cc23354f4ae64dd52e113f86
parent0b3100bc8fa7a05804737dba96075ea8d45316ce
ethtool: adjust struct ethtool_keee to kernel needs

This patch changes the following in struct ethtool_keee
- remove member cmd, it's not needed on kernel side
- remove reserved fields
- switch the semantically boolean members to type bool

We don't have to change any user of the boolean members due to the
implicit casting from/to bool. A small change is needed where a
pointer to bool members is used, in addition remove few now unneeded
double negations.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ethtool.h
net/ethtool/eee.c