]> git.baikalelectronics.ru Git - kernel.git/commit
usb: usb251xb: Add battery enable setting flag
authorSerge Semin <fancer.lancer@gmail.com>
Sun, 22 Oct 2017 20:38:08 +0000 (23:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Nov 2017 16:14:21 +0000 (17:14 +0100)
commit9d8816586a3cdccc185b8a6218af736f26f16ee1
tree24f214dc023951a448baa7ca0d162684ca99d2d0
parent8f4f65646d8620dd3061aad8e30ba75bf38e41f7
usb: usb251xb: Add battery enable setting flag

Battery charging settings are supported by USB251xb hubs only.
USB2517i isn't one of them. So we need to reflect it within the
device-specific data structure. The driver doesn't support dts
property changing this setting, but instead defaults it with zero.
So the flag isn't used anywhere in the driver, but still can be helpful
in future, when necessity of the corresponding dts setting arises.

Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usb251xb.c