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)
commite47a3cf741e71b8c545a826df42432fec3ea60c6
tree2d762bb5ce0e49a108b2014c08feaf9f884b497d
parent6f89fa9e5868dd9956cbc7e97adf8de5a965d69a
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
This page took 0.025605 seconds and 5 git commands to generate.