auxdisplay: img-ascii-lcd: Make container_of() no-op for struct linedisp
Move embedded struct linedisp member to make container_of() no-op. Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Tested-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
parent
b33190d0fd
commit
a8fc3d587f
@ -32,21 +32,21 @@ struct img_ascii_lcd_config {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* struct img_ascii_lcd_ctx - Private data structure
|
* struct img_ascii_lcd_ctx - Private data structure
|
||||||
|
* @linedisp: line display structure
|
||||||
* @base: the base address of the LCD registers
|
* @base: the base address of the LCD registers
|
||||||
* @regmap: the regmap through which LCD registers are accessed
|
* @regmap: the regmap through which LCD registers are accessed
|
||||||
* @offset: the offset within regmap to the start of the LCD registers
|
* @offset: the offset within regmap to the start of the LCD registers
|
||||||
* @cfg: pointer to the LCD model configuration
|
* @cfg: pointer to the LCD model configuration
|
||||||
* @linedisp: line display structure
|
|
||||||
* @curr: the string currently displayed on the LCD
|
* @curr: the string currently displayed on the LCD
|
||||||
*/
|
*/
|
||||||
struct img_ascii_lcd_ctx {
|
struct img_ascii_lcd_ctx {
|
||||||
|
struct linedisp linedisp;
|
||||||
union {
|
union {
|
||||||
void __iomem *base;
|
void __iomem *base;
|
||||||
struct regmap *regmap;
|
struct regmap *regmap;
|
||||||
};
|
};
|
||||||
u32 offset;
|
u32 offset;
|
||||||
const struct img_ascii_lcd_config *cfg;
|
const struct img_ascii_lcd_config *cfg;
|
||||||
struct linedisp linedisp;
|
|
||||||
char curr[] __aligned(8);
|
char curr[] __aligned(8);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user