Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afb580a9 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Lee Jones
Browse files

mfd: toshiba: Constify struct mfd_cell where possible



As of commit 03e361b2 ("mfd: Stop setting
refcounting pointers in original mfd_cell arrays"), the "cell" parameter of
mfd_add_devices() is "const" again. Hence make all cell data passed to
mfd_add_devices() const where possible.

Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent ad59de48
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -155,7 +155,7 @@ static struct resource keypad_resources[] = {
	},
};

static struct mfd_cell tc3589x_dev_gpio[] = {
static const struct mfd_cell tc3589x_dev_gpio[] = {
	{
		.name		= "tc3589x-gpio",
		.num_resources	= ARRAY_SIZE(gpio_resources),
@@ -164,7 +164,7 @@ static struct mfd_cell tc3589x_dev_gpio[] = {
	},
};

static struct mfd_cell tc3589x_dev_keypad[] = {
static const struct mfd_cell tc3589x_dev_keypad[] = {
	{
		.name           = "tc3589x-keypad",
		.num_resources  = ARRAY_SIZE(keypad_resources),
+1 −1
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ static struct tmio_mmc_data tc6387xb_mmc_data = {

/*--------------------------------------------------------------------------*/

static struct mfd_cell tc6387xb_cells[] = {
static const struct mfd_cell tc6387xb_cells[] = {
	[TC6387XB_CELL_MMC] = {
		.name = "tmio-mmc",
		.enable = tc6387xb_mmc_enable,