[PATCH v10 01/11] usb: typec: Add notifier functions

Greg Kroah-Hartman gregkh at linuxfoundation.org
Tue Nov 25 03:49:29 PST 2025


> +static umode_t typec_is_visible(struct kobject *kobj, struct attribute *attr, int n)
> +{
> +	if (is_typec_port(kobj_to_dev(kobj)->parent))

Why look at the parent?  Doesn't the device have a type that should show
this?

Otherwise, looks good to me.

thanks,

greg k-h



More information about the linux-arm-kernel mailing list