[v3,0/4] Simplify extcon_dev_register function.

Message ID 20230302033645.23933-1-bw365.lee@samsung.com
Headers
Series Simplify extcon_dev_register function. |

Message

Bumwoo Lee March 2, 2023, 3:36 a.m. UTC
  It was modified to increase readability.

Chnages from v2:
resolved possible memory leak of dev->cables.

Changes from v1:
added return value handling.

Bumwoo Lee (4):
  extcon: Removed redundant null checking for class
  extcon: Added extcon_alloc_cables to simplify extcon register function
  extcon: Added extcon_alloc_muex to simplify extcon register function
  extcon: Added extcon_alloc_groups to simplify extcon register function

 drivers/extcon/extcon.c | 291 +++++++++++++++++++++++-----------------
 1 file changed, 165 insertions(+), 126 deletions(-)