Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9083429pxu; Mon, 28 Dec 2020 06:14:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxa+1rTdVYV0+XdLxGgfVFfhRjaAZf3YnDLa8gBhR76m7v9Q1bWnAHZukDOVeazF0n1cC7g X-Received: by 2002:aa7:d3cc:: with SMTP id o12mr44209289edr.235.1609164849827; Mon, 28 Dec 2020 06:14:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609164849; cv=none; d=google.com; s=arc-20160816; b=LpOIkvFds0AXH4JNhQAtPQdma4myQKGR9t5zSScHXghqbFpNVtfTfCLUanz0a2/YKf ARDhqSCe3B8lfDbftAy73tKYHwgH5XgY+DI3mLupQ89IDZhdOXZpajgTNn7gY7oMjdQx zJn1il4kJFAl+by9b7UX1+MREOwR9MWJ8tYK+66IvHaCtjTtAI9/vBZMM4/zmmyFy4eP ntNc68qM0JKRAwbWsjZ/M75LjcatbzHnkFYiYwaZhdCiGvCRBwKRJbZSVxYiJ0SUIgJH eCg0f+OcKts8es9yTXT5FzhLV/1b49N1DSoWZVUc50cNPgLci3+AuCi99QpsQndxmWf+ wIfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kt7q3QzqRwaVDmvFDNuQKVgAArwsgQ7ANTqs+zjbSHU=; b=saugqK2Ne7jxLNljuoQ7YDgS/UcT6zZRM0hdb/VxVNuUBgKexPHknDTxPvLHofWYxW GWdfYakz/eOz7jd/VkOcdNSSj52BCzGnjdHIBWmQ36IcbifvMUavuSbeog/pdxaiYT4Y s3CrqHR0F97u1Y+jcAHJtJZfdFrPfmAw43/BIC4lddA196zxje4bSUA+VzCP5aMokWXh etdd4uV/Z9Ky0EP4Jxr4YAuN5izqzVzeUkBCE0ZilG3xR7GmabnK9BFXdy9yPBdMjgr8 payoZxYfr+knUbTnFT625DED3W8NMWC3uMZBtwjI53GZ/rRgG5fO8UlBKqJ3R3QXe5mt 4N2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="YJvBFBL/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dg17si19239415edb.531.2020.12.28.06.13.47; Mon, 28 Dec 2020 06:14:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="YJvBFBL/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438945AbgL1OKJ (ORCPT + 99 others); Mon, 28 Dec 2020 09:10:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:44596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438954AbgL1OKI (ORCPT ); Mon, 28 Dec 2020 09:10:08 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 589842063A; Mon, 28 Dec 2020 14:09:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164567; bh=HE9mS7Tuxq/7/8YHkAYYWvH8V7n4kMaENMzxqSF3Mb0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YJvBFBL/B7e3dEdg+CNgrOK/DotAXOaJVnTP13Nbi/WCi/zv5C6oII/A+IP6EtCuA iugeIigDBmuOMxVBdOx0i33bY+I6tNJ8YwgvGpr701Yrpu6OqdZaZFADxUwvdP6W1r reMHTW5pMFrwh1AY37jlOnKP8DUaV1BAvpKxXj0w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.10 221/717] media: max2175: fix max2175_set_csm_mode() error code Date: Mon, 28 Dec 2020 13:43:39 +0100 Message-Id: <20201228125031.570169273@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter [ Upstream commit 9b1b0cb0636166187478ef68d5b95f5caea062ec ] This is supposed to return negative error codes but the type is bool so it returns true instead. Fixes: b47b79d8a231 ("[media] media: i2c: max2175: Add MAX2175 support") Signed-off-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/i2c/max2175.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/max2175.c b/drivers/media/i2c/max2175.c index 03b4ed3a61b83..661208c9bfc5d 100644 --- a/drivers/media/i2c/max2175.c +++ b/drivers/media/i2c/max2175.c @@ -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); -- 2.27.0