extcon-sm5502.c (762f99f4f3cb41a775b5157dd761217beba65873) extcon-sm5502.c (a84df1c7ddfcb5f7ccd7aaa80c40a49e54621ce8)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * extcon-sm5502.c - Silicon Mitus SM5502 extcon drvier to support USB switches
4 *
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd
6 * Author: Chanwoo Choi <cw00.choi@samsung.com>
7 */
8

--- 784 unchanged lines hidden (view full) ---

793 .num_reg_data = ARRAY_SIZE(sm5504_reg_data),
794 .otg_dev_type1 = SM5504_REG_DEV_TYPE1_USB_OTG_MASK,
795 .parse_irq = sm5504_parse_irq,
796};
797
798static const struct of_device_id sm5502_dt_match[] = {
799 { .compatible = "siliconmitus,sm5502-muic", .data = &sm5502_data },
800 { .compatible = "siliconmitus,sm5504-muic", .data = &sm5504_data },
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * extcon-sm5502.c - Silicon Mitus SM5502 extcon drvier to support USB switches
4 *
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd
6 * Author: Chanwoo Choi <cw00.choi@samsung.com>
7 */
8

--- 784 unchanged lines hidden (view full) ---

793 .num_reg_data = ARRAY_SIZE(sm5504_reg_data),
794 .otg_dev_type1 = SM5504_REG_DEV_TYPE1_USB_OTG_MASK,
795 .parse_irq = sm5504_parse_irq,
796};
797
798static const struct of_device_id sm5502_dt_match[] = {
799 { .compatible = "siliconmitus,sm5502-muic", .data = &sm5502_data },
800 { .compatible = "siliconmitus,sm5504-muic", .data = &sm5504_data },
801 { .compatible = "siliconmitus,sm5703-muic", .data = &sm5502_data },
801 { },
802};
803MODULE_DEVICE_TABLE(of, sm5502_dt_match);
804
805#ifdef CONFIG_PM_SLEEP
806static int sm5502_muic_suspend(struct device *dev)
807{
808 struct i2c_client *i2c = to_i2c_client(dev);

--- 16 unchanged lines hidden (view full) ---

825#endif
826
827static SIMPLE_DEV_PM_OPS(sm5502_muic_pm_ops,
828 sm5502_muic_suspend, sm5502_muic_resume);
829
830static const struct i2c_device_id sm5502_i2c_id[] = {
831 { "sm5502", (kernel_ulong_t)&sm5502_data },
832 { "sm5504", (kernel_ulong_t)&sm5504_data },
802 { },
803};
804MODULE_DEVICE_TABLE(of, sm5502_dt_match);
805
806#ifdef CONFIG_PM_SLEEP
807static int sm5502_muic_suspend(struct device *dev)
808{
809 struct i2c_client *i2c = to_i2c_client(dev);

--- 16 unchanged lines hidden (view full) ---

826#endif
827
828static SIMPLE_DEV_PM_OPS(sm5502_muic_pm_ops,
829 sm5502_muic_suspend, sm5502_muic_resume);
830
831static const struct i2c_device_id sm5502_i2c_id[] = {
832 { "sm5502", (kernel_ulong_t)&sm5502_data },
833 { "sm5504", (kernel_ulong_t)&sm5504_data },
834 { "sm5703", (kernel_ulong_t)&sm5502_data },
833 { }
834};
835MODULE_DEVICE_TABLE(i2c, sm5502_i2c_id);
836
837static struct i2c_driver sm5502_muic_i2c_driver = {
838 .driver = {
839 .name = "sm5502",
840 .pm = &sm5502_muic_pm_ops,

--- 15 unchanged lines hidden ---
835 { }
836};
837MODULE_DEVICE_TABLE(i2c, sm5502_i2c_id);
838
839static struct i2c_driver sm5502_muic_i2c_driver = {
840 .driver = {
841 .name = "sm5502",
842 .pm = &sm5502_muic_pm_ops,

--- 15 unchanged lines hidden ---