diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-03-24 14:32:12 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2020-03-24 21:59:10 +0100 |
commit | 263a5646d88506c82850d824e673b14698ebad6b (patch) | |
tree | dd169df63aa4390c0987f7786c74c7ee8abd37ea /drivers/i2c/busses | |
parent | e6282fc6f889debe4d6eb6332dc6e49739faa5cb (diff) | |
download | lwn-263a5646d88506c82850d824e673b14698ebad6b.tar.gz lwn-263a5646d88506c82850d824e673b14698ebad6b.zip |
i2c: core: Allow override timing properties with 0
Some drivers may allow to override properties with 0 value when defaults
are not in use, thus, replace memset() with corresponding per property
update.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-rcar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c index 879f0e61a496..c8b57ded0e7b 100644 --- a/drivers/i2c/busses/i2c-rcar.c +++ b/drivers/i2c/busses/i2c-rcar.c @@ -920,7 +920,7 @@ static int rcar_i2c_probe(struct platform_device *pdev) struct rcar_i2c_priv *priv; struct i2c_adapter *adap; struct device *dev = &pdev->dev; - struct i2c_timings i2c_t; + struct i2c_timings i2c_t = { 0 }; int ret; /* Otherwise logic will break because some bytes must always use PIO */ |