[PATCH] power_supply: rt9455_charger: Check if CONFIG_USB_PHY is enabled

2015-06-03 Thread Anda-Maria Nicolae
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

Re: [PATCH] power_supply: rt9455_charger: Check if CONFIG_USB_PHY is enabled

2015-06-03 Thread Sebastian Reichel
Hi Anda-Maria, On Wed, Jun 03, 2015 at 11:47:03AM +0300, Anda-Maria Nicolae wrote: 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