hwmon: (lm75) Create function from code to write into registers
authorIker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
Thu, 8 Aug 2019 08:02:44 +0000 (09:02 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 3 Sep 2019 19:47:17 +0000 (12:47 -0700)
commit58608cfee861788aaaf8c1de5c4250ac4151eafd
tree4bd3636039614a30c4406f48ea451e14d670b603
parentdcb12653875e7cd969a6a18346bc1ed24ffb893b
hwmon: (lm75) Create function from code to write into registers

Wrap the existing code to write configurations into registers in
a function.

Added error handling to the function.

Signed-off-by: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
Link: https://lore.kernel.org/r/20190808080246.8371-3-iker.perez@codethink.co.uk
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm75.c