diff options
author | Joaquín Ignacio Aramendía <[email protected]> | 2023-07-17 19:25:15 -0300 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2023-07-18 19:44:19 -0700 |
commit | 957961b6dcc813e6222a4f7e8e3626fcd1f1e098 (patch) | |
tree | 8e81015cab5b9f20523c2bce6c4665a80aa683d7 /lib/mpi/mpi-sub-ui.c | |
parent | a746b3689546da27125da9ccaea62b1dbaaf927c (diff) |
hwmon: (oxp-sensors) Move tt_toggle attribute to dev_groups
A driver should not be manually adding groups in its probe function (it
will race with userspace), so replace the call to devm_device_add_groups()
to use the platform dev_groups callback instead.
This will allow for removal of the devm_device_add_groups() function.
Signed-off-by: Joaquín Ignacio Aramendía <[email protected]>
Fixes: be144ee49127 ("hwmon: (oxp-sensors) Add tt_toggle attribute on supported boards")
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions