Commit e9a2179d authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

gpio struct has changed in kernel 4.9

parent a6f5a1c1
......@@ -1212,10 +1212,10 @@ static struct device * find_device_by_i2c_addr(int address)
static int i2c_addr_gpiochip_match(struct gpio_chip *chip, void *data)
{
struct i2c_client *client = to_i2c_client(chip->dev);
struct i2c_client *client = to_i2c_client(chip->parent);
int *addr = (int *)data;
dev_dbg(chip->dev,"addr_given=0x%02x, addr found=0x%02x\n",addr[0],(int) client->addr);
return i2c_verify_client(chip->dev) && (client->addr==addr[0]);
dev_dbg(chip->parent,"addr_given=0x%02x, addr found=0x%02x\n",addr[0],(int) client->addr);
return i2c_verify_client(chip->parent) && (client->addr==addr[0]);
}
static void shutdown(void){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment