[PATCH v2 0/4] Simplify extcon_dev_register function.

From: Bumwoo Lee
Date: Mon Feb 20 2023 - 00:46:02 EST


It was modified to increase readability.

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 | 289 ++++++++++++++++++++++------------------
1 file changed, 163 insertions(+), 126 deletions(-)

--
2.35.1