]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: axp20x: Remove second struct device * parameter for axp20x_match_device()
authorChen-Yu Tsai <wens@csie.org>
Fri, 12 Feb 2016 02:02:39 +0000 (10:02 +0800)
committerLee Jones <lee.jones@linaro.org>
Fri, 12 Feb 2016 08:50:30 +0000 (08:50 +0000)
commitdb2b91a9c6c451d69b7b5fbad0b54801053fdb4b
tree2d762bb5ce0e49a108b2014c08feaf9f884b497d
parent523cedd80323c5a5ed6e64e7adc6f33ae9da9935
mfd: axp20x: Remove second struct device * parameter for axp20x_match_device()

The first argument passed to axp20x_match_device(), struct axp20x_dev *,
already contains a pointer to the device. By rearranging some code,
moving the assignment of the pointer before axp20x_match_device() is
called, we can eliminate the second parameter.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/axp20x.c