Lines Matching +full:max77650 +full:- +full:charger
1 // SPDX-License-Identifier: GPL-2.0
6 // LED driver for MAXIM 77650/77651 charger/power-supply.
10 #include <linux/mfd/max77650.h>
60 return regmap_update_bits(led->map, led->regA, mask, val); in max77650_led_brightness_set()
71 dev = &pdev->dev; in max77650_led_probe()
76 return -ENOMEM; in max77650_led_probe()
78 map = dev_get_regmap(dev->parent, NULL); in max77650_led_probe()
80 return -ENODEV; in max77650_led_probe()
84 return -ENODEV; in max77650_led_probe()
91 return -EINVAL; in max77650_led_probe()
94 led->map = map; in max77650_led_probe()
95 led->regA = MAX77650_LED_A_BASE + reg; in max77650_led_probe()
96 led->regB = MAX77650_LED_B_BASE + reg; in max77650_led_probe()
97 led->cdev.brightness_set_blocking = max77650_led_brightness_set; in max77650_led_probe()
98 led->cdev.max_brightness = MAX77650_LED_MAX_BRIGHTNESS; in max77650_led_probe()
101 init_data.devicename = "max77650"; in max77650_led_probe()
105 rv = devm_led_classdev_register_ext(dev, &led->cdev, in max77650_led_probe()
110 rv = regmap_write(map, led->regA, MAX77650_LED_A_DEFAULT); in max77650_led_probe()
114 rv = regmap_write(map, led->regB, MAX77650_LED_B_DEFAULT); in max77650_led_probe()
125 { .compatible = "maxim,max77650-led" },
132 .name = "max77650-led",
142 MODULE_ALIAS("platform:max77650-led");