From nobody Thu Nov 28 23:35:47 2024 Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A8F61BAEFD for ; Fri, 27 Sep 2024 09:42:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727430142; cv=none; b=fKoXDcArNjkacxZ8A2xIQ8Wp5GaI+ORThd1XJ1Lp3tv6tr0f85fvoX05vvKqfO2Ljhdzddm+2bw5Am1PoIBh0csYRC6RunHKAcgZhmW0ncomtH+oqXAOYLT57S0DNPaPspfX2Ghqw76C+dw/WuEH+mKMH8BGlzf6q7/6YwwONhs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727430142; c=relaxed/simple; bh=NzGO/n5w0inQUSk9Mrg2JWrHNdom3NBH7egriAh15og=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=O2KPkpBNyH2wAUEUzD2zJQs7R6u5PpGvtUIbHeFpSZ6KdFRE3n0wpUkIXfTXYDgERVCrEZFfne6yjDgVXtVhgIuKfklt23EHy28h7wqpNh3ah0wH9YFgx2TOOsy3pBHvgmqIWvhqDsrK0Kwnhlmy1jZsFbnFNJg6VRS753Zw1yI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=bgxBW2XG; arc=none smtp.client-ip=209.85.160.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="bgxBW2XG" Received: by mail-qt1-f170.google.com with SMTP id d75a77b69052e-45aeed46f5eso8478871cf.3 for ; Fri, 27 Sep 2024 02:42:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727430139; x=1728034939; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=YwJYpIvOPMah9ocVmXZ/vnejPzGmcFsHFsHmC+ou0no=; b=bgxBW2XG1nkeaFkLtiLwwW/ZrInM6i1enQVEFDZqz104Fc6EOuNCRje4+0W2PGRZMl 4CxozEV8VpsUiRzFHN39VAw3DaejLCS2StWRb281CMkpCqj8QAaeLRFhDKK/CI00v101 P0NbTvT4PypcAQ7zlKSZiit+55Ffo6yJkhN7s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727430139; x=1728034939; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YwJYpIvOPMah9ocVmXZ/vnejPzGmcFsHFsHmC+ou0no=; b=QMJwDWQPtOEhvngFR1wCfyfBdY7Zrj1QbaTuECevADeC62sdPVQ0kCGsAMn7kudSEH wAUlLlahqelydPzeZ+9AVvcbBejMSfphoU6u+cgv25hyXGruUyoINt/DjVTT2TnOg3+2 9QpbBfd22nIYSlk0KSdftVRIgoTrIXV1TjBB43OWpwx4Sdd5MwpBQY27OTGjN66Rjvz6 iv8PGgNQ8blOV8qMwmaQg8ZCTDsTtYEcDN92iSJ0xdNKmPNzjErfpPQDfRnzoaFw+4GF 6qnK5O3/RKT5DZPya5Gv1Eo8/VL6d0t+47lXc0jqSUdconEsG1sj2aUz2meOKSYRCAtX 6wCQ== X-Forwarded-Encrypted: i=1; AJvYcCUo4KoItSC2CyNAKP12vYWDTRSTyllhWBwpCv5/qNzf5Fb0fKfHPJP+1Yyyf07SZpLsm+9lTI3Wd7XKCYk=@vger.kernel.org X-Gm-Message-State: AOJu0Yx5DLl1DBoj5X+DUCJrvJdh+KYqbQJHmvGrhjSU+5GMxfjDqh9I ++AX05WvpFx0l/XN103ixfYAaYFI6Ilke9Vu2dqXjfy14RCygrPnmHdSqPzPEQ== X-Google-Smtp-Source: AGHT+IEnh+IrKYShpTgUNIZMuZaNaBR2/h1owwwElW96gX0SdsoHqfJeYKcEmzOAdy8nirRvvS/+Hg== X-Received: by 2002:a05:6214:5789:b0:6c5:32a5:567a with SMTP id 6a1803df08f44-6cb3b5b93ddmr40210646d6.1.1727430139367; Fri, 27 Sep 2024 02:42:19 -0700 (PDT) Received: from denia.c.googlers.com (76.224.245.35.bc.googleusercontent.com. [35.245.224.76]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6cb3b5ff594sm7231606d6.14.2024.09.27.02.42.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2024 02:42:17 -0700 (PDT) From: Ricardo Ribalda Date: Fri, 27 Sep 2024 09:42:13 +0000 Subject: [PATCH 1/3] media: ti: cal: Use str_up_down() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240927-cocci-6-12-v1-1-a318d4e6a19d@chromium.org> References: <20240927-cocci-6-12-v1-0-a318d4e6a19d@chromium.org> In-Reply-To: <20240927-cocci-6-12-v1-0-a318d4e6a19d@chromium.org> To: Benoit Parrot , Mauro Carvalho Chehab , Sakari Ailus , Bingbu Cao , Tianshu Qiu , Greg Kroah-Hartman , Hans de Goede , Andy Shevchenko , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, Ricardo Ribalda X-Mailer: b4 0.13.0 The str_up_down() helper simplifies the code and fixes the following cocci warning: drivers/media/platform/ti/cal/cal-camerarx.c:194:3-9: opportunity for str_u= p_down(enable) Signed-off-by: Ricardo Ribalda --- drivers/media/platform/ti/cal/cal-camerarx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/ti/cal/cal-camerarx.c b/drivers/media/p= latform/ti/cal/cal-camerarx.c index 42dfe08b765f..ba8c4743f539 100644 --- a/drivers/media/platform/ti/cal/cal-camerarx.c +++ b/drivers/media/platform/ti/cal/cal-camerarx.c @@ -191,7 +191,7 @@ static void cal_camerarx_power(struct cal_camerarx *phy= , bool enable) =20 if (i =3D=3D 10) phy_err(phy, "Failed to power %s complexio\n", - enable ? "up" : "down"); + str_up_down(enable); } =20 static void cal_camerarx_wait_reset(struct cal_camerarx *phy) --=20 2.46.1.824.gd892dcdcdd-goog