diff options
author | Anda-Maria Nicolae <anda-maria.nicolae@intel.com> | 2015-06-03 11:47:03 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-06-03 14:23:55 +0300 |
commit | fb323eccbcaff06c1ed21ab989198eb40df6e846 (patch) | |
tree | 1440dddccea854c83d70c01a8485f7e0d9f0f719 /include/linux/power_supply.h | |
parent | bcd56fe1aa97117f8cfad68280d9aa6d403fd815 (diff) | |
download | linux-fb323eccbcaff06c1ed21ab989198eb40df6e846.tar.xz |
power_supply: rt9455_charger: Check if CONFIG_USB_PHY is enabled
If CONFIG_USB_PHY is not enabled, struct notifier_block is not defined and
compilation fails. Therefore, the functions that process USB event
notifications are defined only if CONFIG_USB_PHY is enabled.
There is no need to define these functions if CONFIG_USB_PHY is not
enabled, since no USB notifications are received in this case.
Also, since rt9455_set_boost_voltage_before_boost_mode() function is
called only if USB_EVENT_ID notification is received, this function should
also be defined only if CONFIG_USB_PHY is enabled.
Signed-off-by: Anda-Maria Nicolae <anda-maria.nicolae@intel.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'include/linux/power_supply.h')
0 files changed, 0 insertions, 0 deletions