Home
last modified time | relevance | path

Searched hist:f33c056dea2ea6633d40d36371457380d372c607 (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/extcon/
H A Dextcon-sm5502.hdiff f33c056dea2ea6633d40d36371457380d372c607 Thu Jun 03 10:52:21 CEST 2021 Stephan Gerhold <stephan@gerhold.net> 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>
H A Dextcon-sm5502.cdiff f33c056dea2ea6633d40d36371457380d372c607 Thu Jun 03 10:52:21 CEST 2021 Stephan Gerhold <stephan@gerhold.net> 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>