[PATCH 0/4] Add support for variable sample time in lm75 driver

From: Iker Perez
Date: Tue Aug 06 2019 - 05:11:21 EST


From: Iker Perez del Palomar Sustatxa <iker.perez@xxxxxxxxxxxxxxx>

Hello,

The objective of following patch series is to add support to lm75 driver
to be able to configure the sample time of it's supported devices,
particularly the tmp75b.

The applied changes involve:
* Replace the current switch-case method for configuration
parameters selection to a structure storing them. This method
allows easier management of the parameters.
* Split the writing of configuration registers into a separate
function. This method saves code in later patches.
* Include new fields in lm75_params to add support for multiple
sample times.
* Split the lm75_write functionality into separate, simpler,
functions.
* Add support for configuring the devices via their sysfs nodes.

The patch series was based on linux-next's master branch.

Thank you Guenter Roeck, Michael Drake, Thomas Preston and Tom Eccles for
your time, help and feedback.

Regards,

Iker Perez del Palomar Sustatxa (4):
hwmon: (lm75) Create structure to save all the configuration
parameters.
hwmon: (lm75) Create function from code to write into registers
hwmon: (lm75) Add new fields into lm75_params_
hwmon: (lm75) Modularize lm75_write and make hwmon_chip writable

drivers/hwmon/lm75.c | 373 +++++++++++++++++++++++++++++++++++----------------
1 file changed, 257 insertions(+), 116 deletions(-)

--
2.11.0