ipmi: remove open coded version of SMBus block write
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 28 Jan 2021 08:55:43 +0000 (09:55 +0100)
committerCorey Minyard <cminyard@mvista.com>
Thu, 28 Jan 2021 13:15:12 +0000 (07:15 -0600)
commitfc26067c7417e7fafed7bcc97bda155d91988734
tree85c1a41b44cd05404548646a880cd81e9d133bb4
parent76c057c84d286140c6c416c3b4ba832cd1d8984e
ipmi: remove open coded version of SMBus block write

The block-write function of the core was not used because there was no
client-struct to use. However, in this case it seems apropriate to use a
temporary client struct. Because we are answering a request we recieved
when being a client ourselves. So, convert the code to use a temporary
client and use the block-write function of the I2C core.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Asmaa Mnebhi <asmaa@nvidia.com>
Acked-by: Corey Minyard <cminyard@mvista.com>
Message-Id: <20210128085544.7609-1-wsa+renesas@sang-engineering.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmb_dev_int.c