Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) // SPDX-License-Identifier: GPL-2.0-or-later
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  * Copyright (c) 2017 Sebastian Reichel <sre@kernel.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6) #include <linux/leds.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) #include <linux/mfd/motorola-cpcap.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) #include <linux/mutex.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) #include <linux/of_device.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) #include <linux/platform_device.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) #include <linux/regmap.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) #include <linux/regulator/consumer.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) #define CPCAP_LED_NO_CURRENT 0x0001
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) struct cpcap_led_info {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) 	u16 reg;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) 	u16 mask;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) 	u16 limit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) 	u16 init_mask;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) 	u16 init_val;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) static const struct cpcap_led_info cpcap_led_red = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) 	.reg	= CPCAP_REG_REDC,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 	.mask	= 0x03FF,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) 	.limit	= 31,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) static const struct cpcap_led_info cpcap_led_green = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) 	.reg	= CPCAP_REG_GREENC,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 	.mask	= 0x03FF,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 	.limit	= 31,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) static const struct cpcap_led_info cpcap_led_blue = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 	.reg	= CPCAP_REG_BLUEC,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 	.mask	= 0x03FF,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 	.limit	= 31,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) /* aux display light */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) static const struct cpcap_led_info cpcap_led_adl = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 	.reg		= CPCAP_REG_ADLC,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 	.mask		= 0x000F,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) 	.limit		= 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 	.init_mask	= 0x7FFF,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 	.init_val	= 0x5FF0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) /* camera privacy led */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) static const struct cpcap_led_info cpcap_led_cp = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	.reg		= CPCAP_REG_CLEDC,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	.mask		= 0x0007,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 	.limit		= 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 	.init_mask	= 0x03FF,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 	.init_val	= 0x0008,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) struct cpcap_led {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 	struct led_classdev led;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 	const struct cpcap_led_info *info;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 	struct device *dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 	struct regmap *regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 	struct mutex update_lock;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 	struct regulator *vdd;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 	bool powered;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 	u32 current_limit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) static u16 cpcap_led_val(u8 current_limit, u8 duty_cycle)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 	current_limit &= 0x1f; /* 5 bit */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 	duty_cycle &= 0x0f; /* 4 bit */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 	return current_limit << 4 | duty_cycle;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) static int cpcap_led_set_power(struct cpcap_led *led, bool status)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 	int err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 	if (status == led->powered)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 		return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 	if (status)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 		err = regulator_enable(led->vdd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 	else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 		err = regulator_disable(led->vdd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 	if (err) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 		dev_err(led->dev, "regulator failure: %d", err);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 		return err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 	led->powered = status;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) static int cpcap_led_set(struct led_classdev *ledc, enum led_brightness value)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 	struct cpcap_led *led = container_of(ledc, struct cpcap_led, led);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 	int brightness;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 	int err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 	mutex_lock(&led->update_lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 	if (value > LED_OFF) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 		err = cpcap_led_set_power(led, true);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 		if (err)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 			goto exit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 	if (value == LED_OFF) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 		/* Avoid HW issue by turning off current before duty cycle */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 		err = regmap_update_bits(led->regmap,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 			led->info->reg, led->info->mask, CPCAP_LED_NO_CURRENT);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 		if (err) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 			dev_err(led->dev, "regmap failed: %d", err);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 			goto exit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 		}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 		brightness = cpcap_led_val(value, LED_OFF);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 	} else {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 		brightness = cpcap_led_val(value, LED_ON);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 	err = regmap_update_bits(led->regmap, led->info->reg, led->info->mask,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 		brightness);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 	if (err) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 		dev_err(led->dev, "regmap failed: %d", err);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 		goto exit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) 	if (value == LED_OFF) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 		err = cpcap_led_set_power(led, false);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 		if (err)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 			goto exit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) exit:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 	mutex_unlock(&led->update_lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 	return err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) static const struct of_device_id cpcap_led_of_match[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 	{ .compatible = "motorola,cpcap-led-red", .data = &cpcap_led_red },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 	{ .compatible = "motorola,cpcap-led-green", .data = &cpcap_led_green },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 	{ .compatible = "motorola,cpcap-led-blue",  .data = &cpcap_led_blue },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 	{ .compatible = "motorola,cpcap-led-adl", .data = &cpcap_led_adl },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 	{ .compatible = "motorola,cpcap-led-cp", .data = &cpcap_led_cp },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 	{},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) MODULE_DEVICE_TABLE(of, cpcap_led_of_match);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) static int cpcap_led_probe(struct platform_device *pdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 	struct cpcap_led *led;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 	int err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 	led = devm_kzalloc(&pdev->dev, sizeof(*led), GFP_KERNEL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 	if (!led)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 		return -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 	platform_set_drvdata(pdev, led);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 	led->info = device_get_match_data(&pdev->dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 	led->dev = &pdev->dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 	if (led->info->reg == 0x0000) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 		dev_err(led->dev, "Unsupported LED");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 		return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 	led->regmap = dev_get_regmap(pdev->dev.parent, NULL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 	if (!led->regmap)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 		return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 	led->vdd = devm_regulator_get(&pdev->dev, "vdd");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 	if (IS_ERR(led->vdd)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 		err = PTR_ERR(led->vdd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 		dev_err(led->dev, "Couldn't get regulator: %d", err);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 		return err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 	err = device_property_read_string(&pdev->dev, "label", &led->led.name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 	if (err) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 		dev_err(led->dev, "Couldn't read LED label: %d", err);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 		return err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	if (led->info->init_mask) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 		err = regmap_update_bits(led->regmap, led->info->reg,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 			led->info->init_mask, led->info->init_val);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 		if (err) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 			dev_err(led->dev, "regmap failed: %d", err);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 			return err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 		}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 	mutex_init(&led->update_lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 	led->led.max_brightness = led->info->limit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 	led->led.brightness_set_blocking = cpcap_led_set;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 	err = devm_led_classdev_register(&pdev->dev, &led->led);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 	if (err) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 		dev_err(led->dev, "Couldn't register LED: %d", err);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 		return err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) static struct platform_driver cpcap_led_driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 	.probe = cpcap_led_probe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 	.driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 		.name = "cpcap-led",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) 		.of_match_table = cpcap_led_of_match,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) module_platform_driver(cpcap_led_driver);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) MODULE_DESCRIPTION("CPCAP LED driver");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) MODULE_AUTHOR("Sebastian Reichel <sre@kernel.org>");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) MODULE_LICENSE("GPL");