]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9243eae7a3d7d79a4c1bacc7684ac65b268764d
treedc5912f31f643b2d11265cd03e21b4a05f5e256c
parentc1205cc7a7b6170f9fd76b536bb14c3e005be6ba
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