usb: pd: Exposing the Peak Current value of Fixed Supplies to user space
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 2 Oct 2023 14:22:40 +0000 (17:22 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Oct 2023 14:38:29 +0000 (16:38 +0200)
commit568441b7d45fc7198a89b522d721428f2005c356
tree195d224133c84540b92b62502d574d326bedc408
parentb447e9efe50a1d64070c4f3ec1b1ee1882ee9c7a
usb: pd: Exposing the Peak Current value of Fixed Supplies to user space

Exposing the value of the field as is.

The Peak Current value has to be interpreted as described
in Table 6-10 (Fixed Power Source Peak Current Capability)
of the USB Power Delivery Specification, but that
interpretation will be done in user space, not in kernel.

Suggested-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20231002142240.2641962-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-class-usb_power_delivery
drivers/usb/typec/pd.c
include/linux/usb/pd.h