linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/9] iio: hid-sensor-accel-3d: Constify platform_device_id
@ 2015-05-01 15:53 Krzysztof Kozlowski
  2015-05-01 15:53 ` [PATCH 2/9] iio: adc: axp288: " Krzysztof Kozlowski
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:53 UTC (permalink / raw)
  To: onathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, linux-iio, linux-kernel
  Cc: Krzysztof Kozlowski

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
 drivers/iio/accel/hid-sensor-accel-3d.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/accel/hid-sensor-accel-3d.c b/drivers/iio/accel/hid-sensor-accel-3d.c
index 2b4fad6998c1..ab711495d56e 100644
--- a/drivers/iio/accel/hid-sensor-accel-3d.c
+++ b/drivers/iio/accel/hid-sensor-accel-3d.c
@@ -400,7 +400,7 @@ static int hid_accel_3d_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static struct platform_device_id hid_accel_3d_ids[] = {
+static const struct platform_device_id hid_accel_3d_ids[] = {
 	{
 		/* Format: HID-SENSOR-usage_id_in_hex_lowercase */
 		.name = "HID-SENSOR-200073",
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/9] iio: adc: axp288: Constify platform_device_id
  2015-05-01 15:53 [PATCH 1/9] iio: hid-sensor-accel-3d: Constify platform_device_id Krzysztof Kozlowski
@ 2015-05-01 15:53 ` Krzysztof Kozlowski
  2015-05-01 15:53 ` [PATCH 3/9] iio: hid-sensor-gyro-3d: " Krzysztof Kozlowski
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:53 UTC (permalink / raw)
  To: onathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, linux-iio, linux-kernel
  Cc: Krzysztof Kozlowski

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
 drivers/iio/adc/axp288_adc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/axp288_adc.c b/drivers/iio/adc/axp288_adc.c
index 08bcfb061ca5..27197fd1517e 100644
--- a/drivers/iio/adc/axp288_adc.c
+++ b/drivers/iio/adc/axp288_adc.c
@@ -238,7 +238,7 @@ static int axp288_adc_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static struct platform_device_id axp288_adc_id_table[] = {
+static const struct platform_device_id axp288_adc_id_table[] = {
 	{ .name = "axp288_adc" },
 	{},
 };
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 3/9] iio: hid-sensor-gyro-3d: Constify platform_device_id
  2015-05-01 15:53 [PATCH 1/9] iio: hid-sensor-accel-3d: Constify platform_device_id Krzysztof Kozlowski
  2015-05-01 15:53 ` [PATCH 2/9] iio: adc: axp288: " Krzysztof Kozlowski
@ 2015-05-01 15:53 ` Krzysztof Kozlowski
  2015-05-01 15:53 ` [PATCH 4/9] iio: light: hid-sensor-als: " Krzysztof Kozlowski
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:53 UTC (permalink / raw)
  To: onathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, linux-iio, linux-kernel
  Cc: Krzysztof Kozlowski

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
 drivers/iio/gyro/hid-sensor-gyro-3d.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/gyro/hid-sensor-gyro-3d.c b/drivers/iio/gyro/hid-sensor-gyro-3d.c
index b5883b6f4e50..2e10799fe287 100644
--- a/drivers/iio/gyro/hid-sensor-gyro-3d.c
+++ b/drivers/iio/gyro/hid-sensor-gyro-3d.c
@@ -397,7 +397,7 @@ static int hid_gyro_3d_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static struct platform_device_id hid_gyro_3d_ids[] = {
+static const struct platform_device_id hid_gyro_3d_ids[] = {
 	{
 		/* Format: HID-SENSOR-usage_id_in_hex_lowercase */
 		.name = "HID-SENSOR-200076",
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 4/9] iio: light: hid-sensor-als: Constify platform_device_id
  2015-05-01 15:53 [PATCH 1/9] iio: hid-sensor-accel-3d: Constify platform_device_id Krzysztof Kozlowski
  2015-05-01 15:53 ` [PATCH 2/9] iio: adc: axp288: " Krzysztof Kozlowski
  2015-05-01 15:53 ` [PATCH 3/9] iio: hid-sensor-gyro-3d: " Krzysztof Kozlowski
@ 2015-05-01 15:53 ` Krzysztof Kozlowski
  2015-05-01 15:53 ` [PATCH 5/9] iio: light: hid-sensor-prox: " Krzysztof Kozlowski
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:53 UTC (permalink / raw)
  To: onathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, linux-iio, linux-kernel
  Cc: Krzysztof Kozlowski

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
 drivers/iio/light/hid-sensor-als.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/light/hid-sensor-als.c b/drivers/iio/light/hid-sensor-als.c
index 1609ecdd01b0..cf13a18bafd0 100644
--- a/drivers/iio/light/hid-sensor-als.c
+++ b/drivers/iio/light/hid-sensor-als.c
@@ -361,7 +361,7 @@ static int hid_als_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static struct platform_device_id hid_als_ids[] = {
+static const struct platform_device_id hid_als_ids[] = {
 	{
 		/* Format: HID-SENSOR-usage_id_in_hex_lowercase */
 		.name = "HID-SENSOR-200041",
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 5/9] iio: light: hid-sensor-prox: Constify platform_device_id
  2015-05-01 15:53 [PATCH 1/9] iio: hid-sensor-accel-3d: Constify platform_device_id Krzysztof Kozlowski
                   ` (2 preceding siblings ...)
  2015-05-01 15:53 ` [PATCH 4/9] iio: light: hid-sensor-als: " Krzysztof Kozlowski
@ 2015-05-01 15:53 ` Krzysztof Kozlowski
  2015-05-01 15:53 ` [PATCH 6/9] iio: hid-sensor-magn-3d: " Krzysztof Kozlowski
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:53 UTC (permalink / raw)
  To: onathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, linux-iio, linux-kernel
  Cc: Krzysztof Kozlowski

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
 drivers/iio/light/hid-sensor-prox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/light/hid-sensor-prox.c b/drivers/iio/light/hid-sensor-prox.c
index 91ecc46ffeaa..be9db9d985b2 100644
--- a/drivers/iio/light/hid-sensor-prox.c
+++ b/drivers/iio/light/hid-sensor-prox.c
@@ -352,7 +352,7 @@ static int hid_prox_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static struct platform_device_id hid_prox_ids[] = {
+static const struct platform_device_id hid_prox_ids[] = {
 	{
 		/* Format: HID-SENSOR-usage_id_in_hex_lowercase */
 		.name = "HID-SENSOR-200011",
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 6/9] iio: hid-sensor-magn-3d: Constify platform_device_id
  2015-05-01 15:53 [PATCH 1/9] iio: hid-sensor-accel-3d: Constify platform_device_id Krzysztof Kozlowski
                   ` (3 preceding siblings ...)
  2015-05-01 15:53 ` [PATCH 5/9] iio: light: hid-sensor-prox: " Krzysztof Kozlowski
@ 2015-05-01 15:53 ` Krzysztof Kozlowski
  2015-05-01 15:53 ` [PATCH 7/9] iio: hid-sensor-incl-3d: " Krzysztof Kozlowski
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:53 UTC (permalink / raw)
  To: onathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, linux-iio, linux-kernel
  Cc: Krzysztof Kozlowski

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
 drivers/iio/magnetometer/hid-sensor-magn-3d.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/magnetometer/hid-sensor-magn-3d.c b/drivers/iio/magnetometer/hid-sensor-magn-3d.c
index 4f9c0be24451..d8a0c8da8db0 100644
--- a/drivers/iio/magnetometer/hid-sensor-magn-3d.c
+++ b/drivers/iio/magnetometer/hid-sensor-magn-3d.c
@@ -510,7 +510,7 @@ static int hid_magn_3d_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static struct platform_device_id hid_magn_3d_ids[] = {
+static const struct platform_device_id hid_magn_3d_ids[] = {
 	{
 		/* Format: HID-SENSOR-usage_id_in_hex_lowercase */
 		.name = "HID-SENSOR-200083",
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 7/9] iio: hid-sensor-incl-3d: Constify platform_device_id
  2015-05-01 15:53 [PATCH 1/9] iio: hid-sensor-accel-3d: Constify platform_device_id Krzysztof Kozlowski
                   ` (4 preceding siblings ...)
  2015-05-01 15:53 ` [PATCH 6/9] iio: hid-sensor-magn-3d: " Krzysztof Kozlowski
@ 2015-05-01 15:53 ` Krzysztof Kozlowski
  2015-05-01 15:53 ` [PATCH 8/9] iio: hid-sensor-rotation: " Krzysztof Kozlowski
  2015-05-01 15:53 ` [PATCH 9/9] iio: hid-sensor-press: " Krzysztof Kozlowski
  7 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:53 UTC (permalink / raw)
  To: onathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, linux-iio, linux-kernel
  Cc: Krzysztof Kozlowski

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
 drivers/iio/orientation/hid-sensor-incl-3d.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/orientation/hid-sensor-incl-3d.c b/drivers/iio/orientation/hid-sensor-incl-3d.c
index 5930fa32a2ab..e75c301988f2 100644
--- a/drivers/iio/orientation/hid-sensor-incl-3d.c
+++ b/drivers/iio/orientation/hid-sensor-incl-3d.c
@@ -417,7 +417,7 @@ static int hid_incl_3d_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static struct platform_device_id hid_incl_3d_ids[] = {
+static const struct platform_device_id hid_incl_3d_ids[] = {
 	{
 		/* Format: HID-SENSOR-usage_id_in_hex_lowercase */
 		.name = "HID-SENSOR-200086",
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 8/9] iio: hid-sensor-rotation: Constify platform_device_id
  2015-05-01 15:53 [PATCH 1/9] iio: hid-sensor-accel-3d: Constify platform_device_id Krzysztof Kozlowski
                   ` (5 preceding siblings ...)
  2015-05-01 15:53 ` [PATCH 7/9] iio: hid-sensor-incl-3d: " Krzysztof Kozlowski
@ 2015-05-01 15:53 ` Krzysztof Kozlowski
  2015-05-01 15:53 ` [PATCH 9/9] iio: hid-sensor-press: " Krzysztof Kozlowski
  7 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:53 UTC (permalink / raw)
  To: onathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, linux-iio, linux-kernel
  Cc: Krzysztof Kozlowski

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
 drivers/iio/orientation/hid-sensor-rotation.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/orientation/hid-sensor-rotation.c b/drivers/iio/orientation/hid-sensor-rotation.c
index 4afb6c79ccbc..603fe1419581 100644
--- a/drivers/iio/orientation/hid-sensor-rotation.c
+++ b/drivers/iio/orientation/hid-sensor-rotation.c
@@ -321,7 +321,7 @@ static int hid_dev_rot_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static struct platform_device_id hid_dev_rot_ids[] = {
+static const struct platform_device_id hid_dev_rot_ids[] = {
 	{
 		/* Format: HID-SENSOR-usage_id_in_hex_lowercase */
 		.name = "HID-SENSOR-20008a",
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 9/9] iio: hid-sensor-press: Constify platform_device_id
  2015-05-01 15:53 [PATCH 1/9] iio: hid-sensor-accel-3d: Constify platform_device_id Krzysztof Kozlowski
                   ` (6 preceding siblings ...)
  2015-05-01 15:53 ` [PATCH 8/9] iio: hid-sensor-rotation: " Krzysztof Kozlowski
@ 2015-05-01 15:53 ` Krzysztof Kozlowski
  2015-05-08 15:05   ` Jonathan Cameron
  7 siblings, 1 reply; 10+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:53 UTC (permalink / raw)
  To: onathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, linux-iio, linux-kernel
  Cc: Krzysztof Kozlowski

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
 drivers/iio/pressure/hid-sensor-press.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/pressure/hid-sensor-press.c b/drivers/iio/pressure/hid-sensor-press.c
index 7bb8d4c1f7df..f3305d80c0b8 100644
--- a/drivers/iio/pressure/hid-sensor-press.c
+++ b/drivers/iio/pressure/hid-sensor-press.c
@@ -362,7 +362,7 @@ static int hid_press_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static struct platform_device_id hid_press_ids[] = {
+static const struct platform_device_id hid_press_ids[] = {
 	{
 		/* Format: HID-SENSOR-usage_id_in_hex_lowercase */
 		.name = "HID-SENSOR-200031",
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 9/9] iio: hid-sensor-press: Constify platform_device_id
  2015-05-01 15:53 ` [PATCH 9/9] iio: hid-sensor-press: " Krzysztof Kozlowski
@ 2015-05-08 15:05   ` Jonathan Cameron
  0 siblings, 0 replies; 10+ messages in thread
From: Jonathan Cameron @ 2015-05-08 15:05 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, linux-iio, linux-kernel

On 01/05/15 11:53, Krzysztof Kozlowski wrote:
> The platform_device_id is not modified by the driver and core uses it as
> const.
> 
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Whole series applied to the togreg branch of iio.git.  This will
get pushed out as testing for the autobuilders to play with it
(tomorrow probably).

Jonathan
> ---
>  drivers/iio/pressure/hid-sensor-press.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/pressure/hid-sensor-press.c b/drivers/iio/pressure/hid-sensor-press.c
> index 7bb8d4c1f7df..f3305d80c0b8 100644
> --- a/drivers/iio/pressure/hid-sensor-press.c
> +++ b/drivers/iio/pressure/hid-sensor-press.c
> @@ -362,7 +362,7 @@ static int hid_press_remove(struct platform_device *pdev)
>  	return 0;
>  }
>  
> -static struct platform_device_id hid_press_ids[] = {
> +static const struct platform_device_id hid_press_ids[] = {
>  	{
>  		/* Format: HID-SENSOR-usage_id_in_hex_lowercase */
>  		.name = "HID-SENSOR-200031",
> 


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-05-08 18:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-01 15:53 [PATCH 1/9] iio: hid-sensor-accel-3d: Constify platform_device_id Krzysztof Kozlowski
2015-05-01 15:53 ` [PATCH 2/9] iio: adc: axp288: " Krzysztof Kozlowski
2015-05-01 15:53 ` [PATCH 3/9] iio: hid-sensor-gyro-3d: " Krzysztof Kozlowski
2015-05-01 15:53 ` [PATCH 4/9] iio: light: hid-sensor-als: " Krzysztof Kozlowski
2015-05-01 15:53 ` [PATCH 5/9] iio: light: hid-sensor-prox: " Krzysztof Kozlowski
2015-05-01 15:53 ` [PATCH 6/9] iio: hid-sensor-magn-3d: " Krzysztof Kozlowski
2015-05-01 15:53 ` [PATCH 7/9] iio: hid-sensor-incl-3d: " Krzysztof Kozlowski
2015-05-01 15:53 ` [PATCH 8/9] iio: hid-sensor-rotation: " Krzysztof Kozlowski
2015-05-01 15:53 ` [PATCH 9/9] iio: hid-sensor-press: " Krzysztof Kozlowski
2015-05-08 15:05   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).