]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit64d46fbc2b92414a9f8d6e878355da4f35e78d82
tree4bd3636039614a30c4406f48ea451e14d670b603
parente1cdcfd9e761b1120130ae387dbfb19191804fb3
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