Re: [PATCH 07/12] i2c: rk3x: account for const type of of_device_id.data

2018-01-17 Thread Wolfram Sang
On Tue, Jan 02, 2018 at 02:28:03PM +0100, Julia Lawall wrote: > This driver creates a number of const structures that it stores in > the data field of an of_device_id array. > > The data field of an of_device_id structure has type const void *, so > there is no need for a const-discarding cast

Re: [PATCH 07/12] i2c: rk3x: account for const type of of_device_id.data

2018-01-17 Thread Wolfram Sang
On Tue, Jan 02, 2018 at 02:28:03PM +0100, Julia Lawall wrote: > This driver creates a number of const structures that it stores in > the data field of an of_device_id array. > > The data field of an of_device_id structure has type const void *, so > there is no need for a const-discarding cast

Re: [PATCH 07/12] i2c: rk3x: account for const type of of_device_id.data

2018-01-17 Thread Heiko Stuebner
Am Montag, 15. Januar 2018, 19:24:56 CET schrieb Wolfram Sang: > On Tue, Jan 02, 2018 at 02:28:03PM +0100, Julia Lawall wrote: > > This driver creates a number of const structures that it stores in > > the data field of an of_device_id array. > > > > The data field of an of_device_id structure

Re: [PATCH 07/12] i2c: rk3x: account for const type of of_device_id.data

2018-01-17 Thread Heiko Stuebner
Am Montag, 15. Januar 2018, 19:24:56 CET schrieb Wolfram Sang: > On Tue, Jan 02, 2018 at 02:28:03PM +0100, Julia Lawall wrote: > > This driver creates a number of const structures that it stores in > > the data field of an of_device_id array. > > > > The data field of an of_device_id structure

Re: [PATCH 07/12] i2c: rk3x: account for const type of of_device_id.data

2018-01-15 Thread Wolfram Sang
On Tue, Jan 02, 2018 at 02:28:03PM +0100, Julia Lawall wrote: > This driver creates a number of const structures that it stores in > the data field of an of_device_id array. > > The data field of an of_device_id structure has type const void *, so > there is no need for a const-discarding cast

Re: [PATCH 07/12] i2c: rk3x: account for const type of of_device_id.data

2018-01-15 Thread Wolfram Sang
On Tue, Jan 02, 2018 at 02:28:03PM +0100, Julia Lawall wrote: > This driver creates a number of const structures that it stores in > the data field of an of_device_id array. > > The data field of an of_device_id structure has type const void *, so > there is no need for a const-discarding cast

[PATCH 07/12] i2c: rk3x: account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
This driver creates a number of const structures that it stores in the data field of an of_device_id array. The data field of an of_device_id structure has type const void *, so there is no need for a const-discarding cast when putting const values into such a structure. Furthermore, adding

[PATCH 07/12] i2c: rk3x: account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
This driver creates a number of const structures that it stores in the data field of an of_device_id array. The data field of an of_device_id structure has type const void *, so there is no need for a const-discarding cast when putting const values into such a structure. Furthermore, adding