Lines Matching refs:value
170 unsigned long value; in gpio1_store() local
173 err = kstrtoul(buf, 16, &value); in gpio1_store()
177 value &= ATXP1_GPIO1MASK; in gpio1_store()
179 if (value != (data->reg.gpio1 & ATXP1_GPIO1MASK)) { in gpio1_store()
180 dev_info(dev, "Writing 0x%x to GPIO1.\n", (unsigned int)value); in gpio1_store()
182 i2c_smbus_write_byte_data(client, ATXP1_GPIO1, value); in gpio1_store()
215 unsigned long value; in gpio2_store() local
218 err = kstrtoul(buf, 16, &value); in gpio2_store()
221 value &= 0xff; in gpio2_store()
223 if (value != data->reg.gpio2) { in gpio2_store()
224 dev_info(dev, "Writing 0x%x to GPIO1.\n", (unsigned int)value); in gpio2_store()
226 i2c_smbus_write_byte_data(client, ATXP1_GPIO2, value); in gpio2_store()