w1: ds2405: use module_w1_family to simplify the code
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 9 Feb 2017 15:45:19 +0000 (15:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Feb 2017 14:32:53 +0000 (15:32 +0100)
commit90beaf64226742733c1b38d086f9e5dcd3b7b0e5
tree81db00088de5d632f45f4c6a82774f9bc482d6f2
parent45003a1e251a9777a55ab46bc49f6ddf747f7f94
w1: ds2405: use module_w1_family to simplify the code

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

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/slaves/w1_ds2405.c