commit | e47a3cf741e71b8c545a826df42432fec3ea60c6 | [log] [tgz] |
---|---|---|
author | Chen-Yu Tsai <wens@csie.org> | Fri Feb 12 10:02:39 2016 +0800 |
committer | Lee Jones <lee.jones@linaro.org> | Fri Feb 12 08:50:30 2016 +0000 |
tree | 2d762bb5ce0e49a108b2014c08feaf9f884b497d | |
parent | 6f89fa9e5868dd9956cbc7e97adf8de5a965d69a [diff] |
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>