mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
mfd: cros_ec: Remove parent field
Parent and device were pointing to the same device structure. Parent is unused, removed. Signed-off-by: Gwendal Grignou <[email protected]> Tested-by: Stephen Barber <[email protected]> Tested-by: Heiko Stuebner <[email protected]> Tested-by: Gwendal Grignou <[email protected]> Reviewed-by: Puthikorn Voravootivat <[email protected]> Signed-off-by: Javier Martinez Canillas <[email protected]> Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
parent
5ebe6afaf0
commit
e7b707f968
4 changed files with 0 additions and 5 deletions
|
|
@ -145,7 +145,6 @@ static int cros_ec_i2c_probe(struct i2c_client *client,
|
|||
ec_dev->cmd_xfer = cros_ec_cmd_xfer_i2c;
|
||||
ec_dev->ec_name = client->name;
|
||||
ec_dev->phys_name = client->adapter->name;
|
||||
ec_dev->parent = &client->dev;
|
||||
|
||||
err = cros_ec_register(ec_dev);
|
||||
if (err) {
|
||||
|
|
|
|||
|
|
@ -363,7 +363,6 @@ static int cros_ec_spi_probe(struct spi_device *spi)
|
|||
ec_dev->cmd_xfer = cros_ec_cmd_xfer_spi;
|
||||
ec_dev->ec_name = ec_spi->spi->modalias;
|
||||
ec_dev->phys_name = dev_name(&ec_spi->spi->dev);
|
||||
ec_dev->parent = &ec_spi->spi->dev;
|
||||
ec_dev->din_size = EC_MSG_BYTES + EC_MSG_PREAMBLE_COUNT;
|
||||
ec_dev->dout_size = EC_MSG_BYTES;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue