]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: typec: Update sysfs when setting ops
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Fri, 10 May 2024 20:12:42 +0000 (20:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2024 13:44:27 +0000 (15:44 +0200)
commitfe8db0bbe04d31ab17dc60e205c4a3365c92e67c
tree3796adcf58e100d4944ea3ff8e906a4c425ed608
parent99516f76db48e1a9d54cdfed63c1babcee4e71a5
usb: typec: Update sysfs when setting ops

When adding altmode ops, update the sysfs group so that visibility is
also recalculated.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Jameson Thies <jthies@google.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240510201244.2968152-3-jthies@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/altmodes/displayport.c
drivers/usb/typec/class.c
drivers/usb/typec/ucsi/displayport.c
include/linux/usb/typec.h