staging: kpc2000: kpc_i2c: Remove pldev from i2c_device structure
authorGeordan Neukum <gneukum1@gmail.com>
Sun, 26 May 2019 01:18:28 +0000 (01:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2019 21:04:25 +0000 (14:04 -0700)
commit935d47e209cc5e7e93bcf789a22ddbe6fc67864d
tree04b60ae5a943ff6176012c1de792fe2cc5fad712
parentf82ce45273d4d8173243f08b943c9c371385c105
staging: kpc2000: kpc_i2c: Remove pldev from i2c_device structure

The i2c_device structure contains a member used to stash a pointer to
a platform_device. The driver contains no cases of this member being
used after initialization. Remove the unnecessary struct member and
the initialization of this member in the sole instance where the
driver creates a variable of type: struct i2c_device.

Signed-off-by: Geordan Neukum <gneukum1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc2000_i2c.c