Commit 9b1b0cb0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab
Browse files

media: max2175: fix max2175_set_csm_mode() error code



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

Fixes: b47b79d8 ("[media] media: i2c: max2175: Add MAX2175 support")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent dc10472b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);