summaryrefslogtreecommitdiff
path: root/drivers/extcon/extcon-sm5502.h
diff options
context:
space:
mode:
authorStephan Gerhold <stephan@gerhold.net>2021-06-03 11:52:21 +0300
committerChanwoo Choi <cw00.choi@samsung.com>2021-06-21 12:28:01 +0300
commitf33c056dea2ea6633d40d36371457380d372c607 (patch)
tree4f2dde8fe15e2a597199e7a870294d70d441984a /drivers/extcon/extcon-sm5502.h
parent85b8326ed1513bcd9ab79df2d0d5fae11981be90 (diff)
downloadlinux-f33c056dea2ea6633d40d36371457380d372c607.tar.xz
extcon: sm5502: Refactor driver to use chip-specific struct
Prepare for supporting SM5504 in the extcon-sm5502 driver by replacing enum sm5504_types with a struct sm5504_type that stores the chip-specific definitions. This struct can then be defined separately for SM5504 without having to add if (type == TYPE_SM5504) everywhere in the code. Signed-off-by: Stephan Gerhold <stephan@gerhold.net> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon/extcon-sm5502.h')
-rw-r--r--drivers/extcon/extcon-sm5502.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/extcon/extcon-sm5502.h b/drivers/extcon/extcon-sm5502.h
index ce1f1ec310c4..d187205df7b3 100644
--- a/drivers/extcon/extcon-sm5502.h
+++ b/drivers/extcon/extcon-sm5502.h
@@ -8,10 +8,6 @@
#ifndef __LINUX_EXTCON_SM5502_H
#define __LINUX_EXTCON_SM5502_H
-enum sm5502_types {
- TYPE_SM5502,
-};
-
/* SM5502 registers */
enum sm5502_reg {
SM5502_REG_DEVICE_ID = 0x01,