hwmon: (occ) Remove sequence numbering and checksum calculation
authorEddie James <eajames@linux.ibm.com>
Wed, 21 Jul 2021 19:02:30 +0000 (14:02 -0500)
committerJoel Stanley <joel@jms.id.au>
Fri, 15 Oct 2021 04:39:26 +0000 (15:09 +1030)
commit908dbf0242e21dd95c69a1b0935814cd1abfc134
treeecb3df0f59c763b15a5ab357b532237ec5303533
parent62f79f3d0eb9f4c224bcc3c7f6fa758515a0a7fa
hwmon: (occ) Remove sequence numbering and checksum calculation

Checksumming of the request and sequence numbering is now done in the
OCC interface driver in order to keep unique sequence numbers. So
remove those in the hwmon driver. Also, add the command length to the
send_cmd function pointer, since the checksum must be placed in the
last two bytes of the command. The submit interface must receive the
exact size of the command - previously it could be rounded to the
nearest 8 bytes with no consequence.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210721190231.117185-3-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
drivers/hwmon/occ/common.c
drivers/hwmon/occ/common.h
drivers/hwmon/occ/p8_i2c.c
drivers/hwmon/occ/p9_sbe.c