Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: dw9714: coding style fixes

Just some minor coding style fixes reported by checkpatch.

Signed-off-by: Matthias Fend <matthias.fend@emfend.at>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>

authored by

Matthias Fend and committed by
Hans Verkuil
feec4b07 9316e398

+3 -3
+3 -3
drivers/media/i2c/dw9714.c
··· 144 144 145 145 dw9714_dev = devm_kzalloc(&client->dev, sizeof(*dw9714_dev), 146 146 GFP_KERNEL); 147 - if (dw9714_dev == NULL) 147 + if (!dw9714_dev) 148 148 return -ENOMEM; 149 149 150 150 dw9714_dev->vcc = devm_regulator_get(&client->dev, "vcc"); ··· 247 247 * The lens position is gradually moved in units of DW9714_CTRL_STEPS, 248 248 * to make the movements smoothly. 249 249 */ 250 - static int __maybe_unused dw9714_vcm_resume(struct device *dev) 250 + static int __maybe_unused dw9714_vcm_resume(struct device *dev) 251 251 { 252 252 struct i2c_client *client = to_i2c_client(dev); 253 253 struct v4l2_subdev *sd = i2c_get_clientdata(client); ··· 271 271 DW9714_VAL(val, DW9714_DEFAULT_S)); 272 272 if (ret) 273 273 dev_err_ratelimited(dev, "%s I2C failure: %d", 274 - __func__, ret); 274 + __func__, ret); 275 275 usleep_range(DW9714_CTRL_DELAY_US, DW9714_CTRL_DELAY_US + 10); 276 276 } 277 277