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

Commit e2b498fd authored by Yipeng Yao's avatar Yipeng Yao Committed by Wolfram Sang
Browse files

i2c: pxa: Fix compile warning in 64bit mode



Fix below warning message, coming from 64 bit toolchain.

drivers/i2c/busses/i2c-pxa.c:1237:15:
warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

Signed-off-by: default avatarYipeng Yao <ypyao@marvell.com>
[vaibhav.hiremath@linaro.org: Updated Changelog]
Signed-off-by: default avatarVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Cc: Wolfram Sang <wsa@the-dreams.de>
Acked-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 8bd75bd3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1116,7 +1116,9 @@ static int i2c_pxa_probe_dt(struct platform_device *pdev, struct pxa_i2c *i2c,
		i2c->use_pio = 1;
	if (of_get_property(np, "mrvl,i2c-fast-mode", NULL))
		i2c->fast_mode = 1;
	*i2c_types = (u32)(of_id->data);

	*i2c_types = (enum pxa_i2c_types)(of_id->data);

	return 0;
}