Lines Matching refs:sel3350
152 struct sel3350_data *sel3350; in sel3350_probe() local
155 sel3350 = devm_kzalloc(&pdev->dev, sizeof(struct sel3350_data), GFP_KERNEL); in sel3350_probe()
156 if (!sel3350) in sel3350_probe()
159 platform_set_drvdata(pdev, sel3350); in sel3350_probe()
164 sel3350->leds_pdev = platform_device_register_data( in sel3350_probe()
170 if (IS_ERR(sel3350->leds_pdev)) { in sel3350_probe()
171 rs = PTR_ERR(sel3350->leds_pdev); in sel3350_probe()
177 sel3350->ps_a_cfg_data.ps_detect = devm_gpiod_get(&pdev->dev, in sel3350_probe()
180 sel3350->ps_a_cfg_data.ps_good = devm_gpiod_get(&pdev->dev, in sel3350_probe()
183 ps_cfg.drv_data = &sel3350->ps_a_cfg_data; in sel3350_probe()
184 sel3350->ps_a = devm_power_supply_register(&pdev->dev, in sel3350_probe()
187 if (IS_ERR(sel3350->ps_a)) { in sel3350_probe()
188 rs = PTR_ERR(sel3350->ps_a); in sel3350_probe()
194 sel3350->ps_b_cfg_data.ps_detect = devm_gpiod_get(&pdev->dev, in sel3350_probe()
197 sel3350->ps_b_cfg_data.ps_good = devm_gpiod_get(&pdev->dev, in sel3350_probe()
200 ps_cfg.drv_data = &sel3350->ps_b_cfg_data; in sel3350_probe()
201 sel3350->ps_b = devm_power_supply_register(&pdev->dev, in sel3350_probe()
204 if (IS_ERR(sel3350->ps_b)) { in sel3350_probe()
205 rs = PTR_ERR(sel3350->ps_b); in sel3350_probe()
213 platform_device_unregister(sel3350->leds_pdev); in sel3350_probe()
223 struct sel3350_data *sel3350 = platform_get_drvdata(pdev); in sel3350_remove() local
225 platform_device_unregister(sel3350->leds_pdev); in sel3350_remove()