mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-14 12:37:32 +00:00
media: max2175: fix max2175_set_csm_mode() error code
[ Upstream commit9b1b0cb063
] This is supposed to return negative error codes but the type is bool so it returns true instead. Fixes:b47b79d8a2
("[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>
This commit is contained in:
parent
1108b0f492
commit
1f29c43870
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue