diff options
-rw-r--r-- | cds9k-gpio.c | 1 | ||||
-rw-r--r-- | cds9k-led.c | 2 | ||||
-rw-r--r-- | cds9k-mfd-spi.c | 3 |
3 files changed, 2 insertions, 4 deletions
diff --git a/cds9k-gpio.c b/cds9k-gpio.c index 04c647a..cb8b4be 100644 --- a/cds9k-gpio.c +++ b/cds9k-gpio.c @@ -13,7 +13,6 @@ static int cds9k_gpio_probe(struct platform_device *pdev) struct regmap *regmap; u32 base; int ret; - const char *parent_name = dev_name(pdev->dev.parent); if (!pdev->dev.parent) return -ENODEV; diff --git a/cds9k-led.c b/cds9k-led.c index e00429e..3f976cc 100644 --- a/cds9k-led.c +++ b/cds9k-led.c @@ -40,11 +40,9 @@ enum led_brightness cds9k_led_brightness_get(struct led_classdev *led_cdev) static int cds9k_led_probe(struct platform_device *pdev) { int ret; - u32 base; struct cds9k_led *led; struct device_node *np = pdev->dev.of_node; struct led_init_data init_data = {}; - struct fwnode_handle *fwnode; led = devm_kzalloc(&pdev->dev, sizeof(*led), GFP_KERNEL); if (!led) diff --git a/cds9k-mfd-spi.c b/cds9k-mfd-spi.c index 9f04ffb..46d1c87 100644 --- a/cds9k-mfd-spi.c +++ b/cds9k-mfd-spi.c @@ -4,9 +4,10 @@ #include <linux/regmap.h> static const struct regmap_config simple_regmap_config = { + .max_register = 0x7f, .reg_bits = 8, - .val_bits = 16, .pad_bits = 8, + .val_bits = 16, }; static int david_cds9k_probe(struct spi_device *spi) |