summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorLuca Ceresoli <luca@lucaceresoli.net>2019-01-11 14:30:42 -0200
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-01-25 10:31:13 -0200
commit1455dddc74bd0951a4ea7e77917ebf3a43cc46d8 (patch)
treee49e08f1a7fc84d64a7ca9c25b2d06000c91d725 /drivers/media
parent337e90ed028643c7acdfd0d31e3224d05ca03d66 (diff)
media: imx274: remote unused function imx274_read_reg
imx274_read_reg() is not used since commit ca017467c78b ("media: imx274: add helper to read multibyte registers"). Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/i2c/imx274.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/media/i2c/imx274.c b/drivers/media/i2c/imx274.c
index 95e3d90309e8..c2ac2fd1b96b 100644
--- a/drivers/media/i2c/imx274.c
+++ b/drivers/media/i2c/imx274.c
@@ -617,24 +617,6 @@ static int imx274_write_table(struct stimx274 *priv, const struct reg_8 table[])
return 0;
}
-static inline int imx274_read_reg(struct stimx274 *priv, u16 addr, u8 *val)
-{
- unsigned int uint_val;
- int err;
-
- err = regmap_read(priv->regmap, addr, &uint_val);
- if (err)
- dev_err(&priv->client->dev,
- "%s : i2c read failed, addr = %x\n", __func__, addr);
- else
- dev_dbg(&priv->client->dev,
- "%s : addr 0x%x, val=0x%x\n", __func__,
- addr, uint_val);
-
- *val = uint_val;
- return err;
-}
-
static inline int imx274_write_reg(struct stimx274 *priv, u16 addr, u8 val)
{
int err;