w1: ds28e17: Use module_w1_family to simplify the code
authorChen Huang <chenhuang5@huawei.com>
Thu, 8 Apr 2021 13:09:54 +0000 (13:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Apr 2021 08:58:21 +0000 (10:58 +0200)
commit6c00365d531163a44ce57d862883db9424bd19ab
treea4e9b93cd51be27c133623a85700e849f5461225
parent88adcd66108eae9d96aac7e38686a77fcb4cde24
w1: ds28e17: Use module_w1_family to simplify the code

module_w1_family() makes the code simpler by eliminating
boilerplate code.

Signed-off-by: Chen Huang <chenhuang5@huawei.com>
Link: https://lore.kernel.org/r/20210408130954.1158963-2-chenhuang5@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/slaves/w1_ds28e17.c