w1: ds2805: Use module_w1_family to simplify the code
authorChen Huang <chenhuang5@huawei.com>
Thu, 8 Apr 2021 13:09:53 +0000 (13:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Apr 2021 08:58:21 +0000 (10:58 +0200)
commit88adcd66108eae9d96aac7e38686a77fcb4cde24
treeb220318c110b1fbd42f77bdd0f80c1030a17ba9c
parenta7dc1e6f99df59799ab0128d9c4e47bbeceb934d
w1: ds2805: 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-1-chenhuang5@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/slaves/w1_ds2805.c