commit | 58608cfee861788aaaf8c1de5c4250ac4151eafd | [log] [tgz] |
---|---|---|
author | Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk> | Thu Aug 08 09:02:44 2019 +0100 |
committer | Guenter Roeck <linux@roeck-us.net> | Tue Sep 03 12:47:17 2019 -0700 |
tree | 4bd3636039614a30c4406f48ea451e14d670b603 | |
parent | dcb12653875e7cd969a6a18346bc1ed24ffb893b [diff] |
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>