[PATCH 0/2] usb: typec: tcpm: Fix logic and documentation of tcpc_dev->init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The tcpm code treats the init callback as optional when registering a port
but as required when doing a tcpm_init(). In addition we uniquely don't
document init in struct tcpc_dev {}.

This series fixes both situations calling tcpc_dev->init() only if the
implementing driver provides an init and documenting init in the tcpc_dev
data-structure for consistency.

Bryan O'Donoghue (2):
  usb: typec: tcpm: Call init callback only when provided
  usb: typec: tcpm: Add a description for the init callback

 drivers/usb/typec/tcpm/tcpm.c | 3 ++-
 include/linux/usb/tcpm.h      | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

-- 
2.30.1




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux