]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: rpi: add module alias to raspberrypi-hwmon
authorPeter Robinson <pbrobinson@gmail.com>
Fri, 20 Jul 2018 23:02:12 +0000 (00:02 +0100)
committerFlorian Fainelli <f.fainelli@gmail.com>
Wed, 5 Sep 2018 18:58:00 +0000 (11:58 -0700)
commit48b383032826e6c7ebd09b3671784e4475357a43
treef1d63a83106df7f64b0c1ad578230efc206a91fc
parent0ff97265403d59a684be8666710156706ccfd8fa
hwmon: rpi: add module alias to raspberrypi-hwmon

The raspberrypi-hwmon driver doesn't automatically load, although it does work
when loaded, by adding the alias it auto loads as expected when built as a
module. Tested on RPi2/RPi3 on 32 bit kernel and RPi3B+ on aarch64 with
Fedora 28 and a patched 4.18 RC kernel.

Fixes: 3c493c885cf ("hwmon: Add support for RPi voltage sensor")
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
CC: Stefan Wahren <stefan.wahren@i2se.com>
CC: Eric Anholt <eric@anholt.net>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/hwmon/raspberrypi-hwmon.c