]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: ucsi: Only assign the identity structure if the PPM supports it
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Fri, 16 Aug 2024 13:58:56 +0000 (16:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Aug 2024 10:47:38 +0000 (18:47 +0800)
commit73910c511b1a665a993d66dceb0ffafbacd2ece6
treea5c52f61eb9db9371d8d44a6d9b2a5e06dc841fe
parent1d05c382ddb4e43ce251a50f308df5e42a2f6088
usb: typec: ucsi: Only assign the identity structure if the PPM supports it

This will make sure that the identity sysfs attribute files
are kept hidden if the UCSI interface doesn't support
reading the USB Power Delivery messages.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Link: https://lore.kernel.org/r/20240816135859.3499351-4-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c