Message ID | 022601cf69d2$ef8ba9f0$cea2fdd0$%han@samsung.com |
---|---|
State | Superseded |
Headers | show |
Hi Jingoo, On 05/07/2014 11:01 AM, Jingoo Han wrote: > Make of_device_id array const, because all OF functions > handle it as const. > Acked-by: Maxime Coquelin <maxime.coquelin@st.com> > Signed-off-by: Jingoo Han <jg1.han@samsung.com> > --- > drivers/i2c/busses/i2c-st.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/i2c/busses/i2c-st.c b/drivers/i2c/busses/i2c-st.c > index 8720161..95b94767 100644 > --- a/drivers/i2c/busses/i2c-st.c > +++ b/drivers/i2c/busses/i2c-st.c > @@ -847,7 +847,7 @@ static int st_i2c_remove(struct platform_device *pdev) > return 0; > } > > -static struct of_device_id st_i2c_match[] = { > +static const struct of_device_id st_i2c_match[] = { > { .compatible = "st,comms-ssc-i2c", }, > { .compatible = "st,comms-ssc4-i2c", }, > {}, > Thanks! Maxime -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/i2c/busses/i2c-st.c b/drivers/i2c/busses/i2c-st.c index 8720161..95b94767 100644 --- a/drivers/i2c/busses/i2c-st.c +++ b/drivers/i2c/busses/i2c-st.c @@ -847,7 +847,7 @@ static int st_i2c_remove(struct platform_device *pdev) return 0; } -static struct of_device_id st_i2c_match[] = { +static const struct of_device_id st_i2c_match[] = { { .compatible = "st,comms-ssc-i2c", }, { .compatible = "st,comms-ssc4-i2c", }, {},
Make of_device_id array const, because all OF functions handle it as const. Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/i2c/busses/i2c-st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)