i2c: make address check indpendent from client struct
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 17 Jul 2015 10:50:06 +0000 (12:50 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 24 Aug 2015 12:05:13 +0000 (14:05 +0200)
commitc4019b7040eaf88f440ce5212e055a4f19b1b541
treef25570e12c4658ffbd499c2830419c5a13121ab7
parent66be6056eba80690bb7fa3d983c21494e1950bea
i2c: make address check indpendent from client struct

We want to use this function with struct boardinfo soon, so let's just
pass the parameters really needed. We also extend the type of addr, so
more types can be input. Remove a superfluous dangling comment while
here.

Tested-by: Andrey Danin <danindrey@mail.ru>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c