From: André Apitzsch Date: Sat, 20 Sep 2025 12:03:41 +0000 (+0200) Subject: media: i2c: dw9719: Deprecate dongwoon,vcm-freq X-Git-Tag: v6.19-rc1~159^2~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36e98b0406e10f6581d9ef35bacedc9d78284bc1;p=thirdparty%2Fkernel%2Flinux.git media: i2c: dw9719: Deprecate dongwoon,vcm-freq The name of property "dongwoon,vcm-freq" doesn't match its purpose. Change the name of the property to "dongwoon,vcm-prescale" to better describe its purpose and deprecate the old one. Signed-off-by: André Apitzsch Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/i2c/dw9719.c b/drivers/media/i2c/dw9719.c index 032fbcb981f20..5ed0042fce18a 100644 --- a/drivers/media/i2c/dw9719.c +++ b/drivers/media/i2c/dw9719.c @@ -82,6 +82,7 @@ static int dw9719_power_up(struct dw9719_device *dw9719, bool detect) { u64 val; int ret; + int err; ret = regulator_enable(dw9719->regulator); if (ret) @@ -123,7 +124,13 @@ static int dw9719_power_up(struct dw9719_device *dw9719, bool detect) &dw9719->sac_mode); /* Optional indication of VCM frequency */ - device_property_read_u32(dw9719->dev, "dongwoon,vcm-freq", + err = device_property_read_u32(dw9719->dev, "dongwoon,vcm-freq", + &dw9719->vcm_freq); + if (err == 0) + dev_warn(dw9719->dev, "dongwoon,vcm-freq property is deprecated, please use dongwoon,vcm-prescale\n"); + + /* Optional indication of VCM prescale */ + device_property_read_u32(dw9719->dev, "dongwoon,vcm-prescale", &dw9719->vcm_freq); }