mpr121 120 drivers/input/keyboard/mpr121_touchkey.c struct mpr121_touchkey *mpr121 = dev_id; mpr121 121 drivers/input/keyboard/mpr121_touchkey.c struct i2c_client *client = mpr121->client; mpr121 122 drivers/input/keyboard/mpr121_touchkey.c struct input_dev *input = mpr121->input_dev; mpr121 142 drivers/input/keyboard/mpr121_touchkey.c bit_changed = reg ^ mpr121->statusbits; mpr121 143 drivers/input/keyboard/mpr121_touchkey.c mpr121->statusbits = reg; mpr121 144 drivers/input/keyboard/mpr121_touchkey.c for_each_set_bit(key_num, &bit_changed, mpr121->keycount) { mpr121 148 drivers/input/keyboard/mpr121_touchkey.c key_val = mpr121->keycodes[key_num]; mpr121 163 drivers/input/keyboard/mpr121_touchkey.c static int mpr121_phys_init(struct mpr121_touchkey *mpr121, mpr121 209 drivers/input/keyboard/mpr121_touchkey.c eleconf = mpr121->keycount | ELECTRODE_CONF_QUICK_CHARGE; mpr121 215 drivers/input/keyboard/mpr121_touchkey.c dev_dbg(&client->dev, "set up with %x keys.\n", mpr121->keycount); mpr121 230 drivers/input/keyboard/mpr121_touchkey.c struct mpr121_touchkey *mpr121; mpr121 246 drivers/input/keyboard/mpr121_touchkey.c mpr121 = devm_kzalloc(dev, sizeof(*mpr121), GFP_KERNEL); mpr121 247 drivers/input/keyboard/mpr121_touchkey.c if (!mpr121) mpr121 254 drivers/input/keyboard/mpr121_touchkey.c mpr121->client = client; mpr121 255 drivers/input/keyboard/mpr121_touchkey.c mpr121->input_dev = input_dev; mpr121 256 drivers/input/keyboard/mpr121_touchkey.c mpr121->keycount = device_property_count_u32(dev, "linux,keycodes"); mpr121 257 drivers/input/keyboard/mpr121_touchkey.c if (mpr121->keycount > MPR121_MAX_KEY_COUNT) { mpr121 258 drivers/input/keyboard/mpr121_touchkey.c dev_err(dev, "too many keys defined (%d)\n", mpr121->keycount); mpr121 263 drivers/input/keyboard/mpr121_touchkey.c mpr121->keycodes, mpr121 264 drivers/input/keyboard/mpr121_touchkey.c mpr121->keycount); mpr121 278 drivers/input/keyboard/mpr121_touchkey.c input_dev->keycode = mpr121->keycodes; mpr121 279 drivers/input/keyboard/mpr121_touchkey.c input_dev->keycodesize = sizeof(mpr121->keycodes[0]); mpr121 280 drivers/input/keyboard/mpr121_touchkey.c input_dev->keycodemax = mpr121->keycount; mpr121 282 drivers/input/keyboard/mpr121_touchkey.c for (i = 0; i < mpr121->keycount; i++) mpr121 283 drivers/input/keyboard/mpr121_touchkey.c input_set_capability(input_dev, EV_KEY, mpr121->keycodes[i]); mpr121 285 drivers/input/keyboard/mpr121_touchkey.c error = mpr121_phys_init(mpr121, client, vdd_uv); mpr121 294 drivers/input/keyboard/mpr121_touchkey.c dev->driver->name, mpr121); mpr121 304 drivers/input/keyboard/mpr121_touchkey.c i2c_set_clientdata(client, mpr121); mpr121 326 drivers/input/keyboard/mpr121_touchkey.c struct mpr121_touchkey *mpr121 = i2c_get_clientdata(client); mpr121 332 drivers/input/keyboard/mpr121_touchkey.c mpr121->keycount);