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

[media] tvp5150: propagate I2C write error in .s_register callback

The tvp5150_write() function can fail so don't return 0 unconditionally
in tvp5150_s_register() but propagate what's returned by tvp5150_write().

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Javier Martinez Canillas and committed by
Mauro Carvalho Chehab
eca4ca84 cacdd6a4

+1 -2
+1 -2
drivers/media/i2c/tvp5150.c
··· 1161 1161 1162 1162 static int tvp5150_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg) 1163 1163 { 1164 - tvp5150_write(sd, reg->reg & 0xff, reg->val & 0xff); 1165 - return 0; 1164 + return tvp5150_write(sd, reg->reg & 0xff, reg->val & 0xff); 1166 1165 } 1167 1166 #endif 1168 1167