Skip to content

Commit

Permalink
media: max2175: fix max2175_set_csm_mode() error code
Browse files Browse the repository at this point in the history
[ Upstream commit 9b1b0cb ]

This is supposed to return negative error codes but the type is bool so
it returns true instead.

Fixes: b47b79d ("[media] media: i2c: max2175: Add MAX2175 support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Dan Carpenter authored and gregkh committed Dec 30, 2020
1 parent 5873bee commit 7617093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/i2c/max2175.c
Expand Up @@ -503,7 +503,7 @@ static void max2175_set_bbfilter(struct max2175 *ctx)
}
}

static bool max2175_set_csm_mode(struct max2175 *ctx,
static int max2175_set_csm_mode(struct max2175 *ctx,
enum max2175_csm_mode new_mode)
{
int ret = max2175_poll_csm_ready(ctx);
Expand Down

0 comments on commit 7617093

Please sign in to comment.