Commit 2a48b379 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'auxdisplay-for-linus-v5.6-rc6' of git://github.com/ojeda/linux

Pull auxdisplay updates from Miguel Ojeda:
 "A few minor auxdisplay improvements:

   - charlcd: replace zero-length array with flexible-array member
     (kernel-wide cleanup by Gustavo A. R. Silva)

   - img-ascii-lcd: convert to devm_platform_ioremap_resource (Yangtao
     Li)

   - Fix Kconfig indentation (Krzysztof Kozlowski)

* tag 'auxdisplay-for-linus-v5.6-rc6' of git://github.com/ojeda/linux:
  auxdisplay: charlcd: replace zero-length array with flexible-array member
  auxdisplay: img-ascii-lcd: convert to devm_platform_ioremap_resource
  auxdisplay: Fix Kconfig indentation
parents e9414845 2f920c0f
...@@ -111,7 +111,7 @@ config CFAG12864B ...@@ -111,7 +111,7 @@ config CFAG12864B
If unsure, say N. If unsure, say N.
config CFAG12864B_RATE config CFAG12864B_RATE
int "Refresh rate (hertz)" int "Refresh rate (hertz)"
depends on CFAG12864B depends on CFAG12864B
default "20" default "20"
---help--- ---help---
...@@ -329,7 +329,7 @@ config PANEL_LCD_PROTO ...@@ -329,7 +329,7 @@ config PANEL_LCD_PROTO
config PANEL_LCD_PIN_E config PANEL_LCD_PIN_E
depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0" depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
int "Parallel port pin number & polarity connected to the LCD E signal (-17...17) " int "Parallel port pin number & polarity connected to the LCD E signal (-17...17) "
range -17 17 range -17 17
default 14 default 14
---help--- ---help---
...@@ -344,7 +344,7 @@ config PANEL_LCD_PIN_E ...@@ -344,7 +344,7 @@ config PANEL_LCD_PIN_E
config PANEL_LCD_PIN_RS config PANEL_LCD_PIN_RS
depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0" depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
int "Parallel port pin number & polarity connected to the LCD RS signal (-17...17) " int "Parallel port pin number & polarity connected to the LCD RS signal (-17...17) "
range -17 17 range -17 17
default 17 default 17
---help--- ---help---
...@@ -359,7 +359,7 @@ config PANEL_LCD_PIN_RS ...@@ -359,7 +359,7 @@ config PANEL_LCD_PIN_RS
config PANEL_LCD_PIN_RW config PANEL_LCD_PIN_RW
depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0" depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
int "Parallel port pin number & polarity connected to the LCD RW signal (-17...17) " int "Parallel port pin number & polarity connected to the LCD RW signal (-17...17) "
range -17 17 range -17 17
default 16 default 16
---help--- ---help---
...@@ -374,7 +374,7 @@ config PANEL_LCD_PIN_RW ...@@ -374,7 +374,7 @@ config PANEL_LCD_PIN_RW
config PANEL_LCD_PIN_SCL config PANEL_LCD_PIN_SCL
depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0" depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0"
int "Parallel port pin number & polarity connected to the LCD SCL signal (-17...17) " int "Parallel port pin number & polarity connected to the LCD SCL signal (-17...17) "
range -17 17 range -17 17
default 1 default 1
---help--- ---help---
...@@ -389,7 +389,7 @@ config PANEL_LCD_PIN_SCL ...@@ -389,7 +389,7 @@ config PANEL_LCD_PIN_SCL
config PANEL_LCD_PIN_SDA config PANEL_LCD_PIN_SDA
depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0" depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0"
int "Parallel port pin number & polarity connected to the LCD SDA signal (-17...17) " int "Parallel port pin number & polarity connected to the LCD SDA signal (-17...17) "
range -17 17 range -17 17
default 2 default 2
---help--- ---help---
...@@ -404,12 +404,12 @@ config PANEL_LCD_PIN_SDA ...@@ -404,12 +404,12 @@ config PANEL_LCD_PIN_SDA
config PANEL_LCD_PIN_BL config PANEL_LCD_PIN_BL
depends on PANEL_PROFILE="0" && PANEL_LCD="1" depends on PANEL_PROFILE="0" && PANEL_LCD="1"
int "Parallel port pin number & polarity connected to the LCD backlight signal (-17...17) " int "Parallel port pin number & polarity connected to the LCD backlight signal (-17...17) "
range -17 17 range -17 17
default 0 default 0
---help--- ---help---
This describes the number of the parallel port pin to which the LCD 'BL' signal This describes the number of the parallel port pin to which the LCD 'BL' signal
has been connected. It can be : has been connected. It can be :
0 : no connection (eg: connected to ground) 0 : no connection (eg: connected to ground)
1..17 : directly connected to any of these pins on the DB25 plug 1..17 : directly connected to any of these pins on the DB25 plug
......
...@@ -88,7 +88,7 @@ struct charlcd_priv { ...@@ -88,7 +88,7 @@ struct charlcd_priv {
int len; int len;
} esc_seq; } esc_seq;
unsigned long long drvdata[0]; unsigned long long drvdata[];
}; };
#define charlcd_to_priv(p) container_of(p, struct charlcd_priv, lcd) #define charlcd_to_priv(p) container_of(p, struct charlcd_priv, lcd)
......
...@@ -356,7 +356,6 @@ static int img_ascii_lcd_probe(struct platform_device *pdev) ...@@ -356,7 +356,6 @@ static int img_ascii_lcd_probe(struct platform_device *pdev)
const struct of_device_id *match; const struct of_device_id *match;
const struct img_ascii_lcd_config *cfg; const struct img_ascii_lcd_config *cfg;
struct img_ascii_lcd_ctx *ctx; struct img_ascii_lcd_ctx *ctx;
struct resource *res;
int err; int err;
match = of_match_device(img_ascii_lcd_matches, &pdev->dev); match = of_match_device(img_ascii_lcd_matches, &pdev->dev);
...@@ -378,8 +377,7 @@ static int img_ascii_lcd_probe(struct platform_device *pdev) ...@@ -378,8 +377,7 @@ static int img_ascii_lcd_probe(struct platform_device *pdev)
&ctx->offset)) &ctx->offset))
return -EINVAL; return -EINVAL;
} else { } else {
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); ctx->base = devm_platform_ioremap_resource(pdev, 0);
ctx->base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(ctx->base)) if (IS_ERR(ctx->base))
return PTR_ERR(ctx->base); return PTR_ERR(ctx->base);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment