aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2021-05-09 22:03:46 +1200
committerDavid Phillips <david@yeah.nah.nz>2021-05-09 22:03:46 +1200
commit9de30f1f92924be479dd3ed07a4638e46a83098b (patch)
tree24250cae5392bdd28cefc38bc63b03702f7cd3f1
parent1bfbf7c584da27d2c194557c64037596b2e134b1 (diff)
downloadcds9k-9de30f1f92924be479dd3ed07a4638e46a83098b.tar.xz
Add maximum register
This allows debug through debugfs
-rw-r--r--cds9k-gpio.c1
-rw-r--r--cds9k-led.c2
-rw-r--r--cds9k-mfd-spi.c3
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)