diff options
| author | 2023-09-19 12:34:49 +0300 | |
|---|---|---|
| committer | 2023-10-28 09:21:36 -0700 | |
| commit | 9ca6696718cc3f8ca94172d834567f35500f21bf (patch) | |
| tree | 4d919640e4eca1669cd95e046689a5438319d9cf /rust/kernel/ssh:/git@git.zx2c4.com/git: | |
| parent | MAINTAINERS: Add Hal as one of the maintainers of SFCTEMP HWMON DRIVER (diff) | |
hwmon: (max31827) Make code cleaner
Used enums and while loops to replace switch for selecting and getting
update interval from conversion rate bits.
Divided the write_alarm_val function into 2 functions. The new function
is more generic: it can be used not only for alarm writes, but for any
kind of writes which require the device to be in shutdown mode.
Signed-off-by: Daniel Matyas <daniel.matyas@analog.com>
Link: https://lore.kernel.org/r/20230919093456.10592-1-daniel.matyas@analog.com
[groeck: Reverted error return value change (EOPNOTSUPP -> EINVAL)]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
