aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/max6697.c
diff options
context:
space:
mode:
authorZev Weiss <zev@bewilderbeest.net>2022-04-26 18:01:50 -0700
committerGuenter Roeck <linux@roeck-us.net>2022-05-20 10:57:06 -0700
commit3c7e4935d46803f009e344546e41e777df7537b1 (patch)
treebeb738bd766a3db780a9c8e84a7f203d7737baa0 /drivers/hwmon/max6697.c
parenthwmon: (nct6775) Convert register access to regmap API (diff)
downloadlinux-dev-3c7e4935d46803f009e344546e41e777df7537b1.tar.xz
linux-dev-3c7e4935d46803f009e344546e41e777df7537b1.zip
hwmon: (nct6775) Rearrange attr-group initialization
We now track the number of attribute groups in nct6775_data, as a measure to simplify handling differences in the set of enabled attribute groups between nct6775 drivers (platform & i2c). As a side effect, we also reduce the amount of IS_ERR()/PTR_ERR() boilerplate a bit. Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Reviewed-by: Joel Stanley <joel@jms.id.au> Link: https://lore.kernel.org/r/20220427010154.29749-4-zev@bewilderbeest.net Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/max6697.c')
0 files changed, 0 insertions, 0 deletions