w1: ds1wm: fix register offset (bus shift) calculation
authorJohannes Poehlmann <johannes.poehlmann@izt-labs.de>
Tue, 25 Jul 2017 11:27:11 +0000 (13:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 15:20:01 +0000 (17:20 +0200)
commit242b476f821b055ed0fb70a8eb6defa85baada9c
treedc5912f31f643b2d11265cd03e21b4a05f5e256c
parentd7b3cf892abd94423af02e03f2d6e4a671617328
w1: ds1wm: fix register offset (bus shift) calculation

Replace incorrect register offsett calculation by
direct configuration of bus_shift in mfd-cell.

Indirect definition of address-shift by resource size
was unobvious and was wrong (should have used a binary log).

Signed-off-by: Johannes Poehlmann <johannes.poehlmann@izt-labs.de>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/masters/ds1wm.c
include/linux/mfd/ds1wm.h