--
1.7.8.2
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
follows the commit in input, which already modified the
common header for adp5588
Signed-off-by: Jean-François Dagenais <redacted>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
---
drivers/gpio/gpio-adp5588.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
@@ -384,6 +384,7 @@ static int __devinit adp5588_gpio_probe(struct i2c_client *client,gc->ngpio=ADP5588_MAXGPIO;gc->label=client->name;gc->owner=THIS_MODULE;+gc->names=pdata->names;mutex_init(&dev->lock);
--
1.7.8.2
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
I think it is 1 const too much - you won't be able to use non-statioc
initialization...
--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
struct adp5588_gpio_platform_data {
int gpio_start; /* GPIO Chip base # */
+ const char *const *names;
I think it is 1 const too much - you won't be able to use non-statioc
initialization...
The following code (compiles without warning using gcc version 4.6.1) works as expected
#include <stdio.h>
#include <malloc.h>
struct adp5588_gpio_platform_data {
const char const*const* names;
};
int main(void)
{
struct adp5588_gpio_platform_data s;
char const* str_tbl[2];
const char str0[10] = "string 0";
const char str1[10] = "string 1";
str_tbl[0] = str0;
str_tbl[1] = str1;
s.names = str_tbl;
printf("tbl index 0: \"%s\"\n", s.names[0]);
printf("tbl index 1: \"%s\"\n", s.names[1]);
return 0;
}
terminal output:
tbl index 0:string 0
tbl index 1:string 1
Do I need to resend the patches? Do I need to forward to "linux-kernel"?
--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html