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

Commit 2601a003 authored by Arvind Yadav's avatar Arvind Yadav Committed by Wolfram Sang
Browse files

i2c: nomadik: constify amba_id



amba_id are not supposed to change at runtime. All functions
working with const amba_id. So mark the non-const structs as const.

Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent a89c22d5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1088,7 +1088,7 @@ static struct i2c_vendor_data vendor_db8500 = {
	.fifodepth = 32, /* Guessed from TFTR/RFTR = 15 */
	.fifodepth = 32, /* Guessed from TFTR/RFTR = 15 */
};
};


static struct amba_id nmk_i2c_ids[] = {
static const struct amba_id nmk_i2c_ids[] = {
	{
	{
		.id	= 0x00180024,
		.id	= 0x00180024,
		.mask	= 0x00ffffff,
		.mask	= 0x00ffffff,