From patchwork Mon Sep 30 12:04:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13815967 Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com [209.85.219.48]) (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 E6EFE1990BE for ; Mon, 30 Sep 2024 12:04:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727697886; cv=none; b=O4qs7ZYk/aqX9anNV0slFiSGGCoB+5ftmO3yUs0l3/Qc1rFDP4ftH4YNZ83825tz3hLKJEJtx8/P3KskF/lbNNCEu3Fn+/RGLmKsX8bwb0G2Lm/XM6gc+dnuG+GmvNQOA4vixPEF522s6yJHEWKUJdNiTx89/TyVHQrEbxH6/0M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727697886; c=relaxed/simple; bh=wO32bcNT3LvCUpFUE8spFFSYHTYoba2s3UV9j7voxsE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uhEQGgfzpwnw+uFbtbk/A5HSuBRkHdFleGMAOSJVa3HSAk/erPa3YeAV1vsla8lpOgY/qb5tQXWhHBIBuKyW3A2cmuooB9Wt8utHqmn/e8S40tFHuiofiouq17Z6WiDvtykuSRd3JFoxvcAsyDa5W++X0sw+sgnLUJADxEtNW3o= 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=Tx/Kqtq1; arc=none smtp.client-ip=209.85.219.48 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="Tx/Kqtq1" Received: by mail-qv1-f48.google.com with SMTP id 6a1803df08f44-6cb2dffcdbbso37871096d6.1 for ; Mon, 30 Sep 2024 05:04:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727697884; x=1728302684; darn=lists.linux.dev; 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=d+1PZUGpVB6A0qj8dhi+z1VPBRWAZJyLXCCfSc2+bXs=; b=Tx/Kqtq1lF6lUgYMiXbkPiASyTCTj4iHo+zkiekW5zPkmDHDiAKaH2k6mS0J6bjyab QCbYgj6RUyOJ5//7zOl5TNrd92odhNqIU4A0MTXxUwFcf0LV6DeRfMS1MBtDMAbfUdQX q0J0odIKnMxhCRC5ooiL7F5zl+yxflxCJV6Io= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727697884; x=1728302684; 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=d+1PZUGpVB6A0qj8dhi+z1VPBRWAZJyLXCCfSc2+bXs=; b=liXkY43uQpk6BIrz/9okezl1PwKA69Nom9pgerIMc819fN0eqbV+cbKLZ5IOyyh2Lz OJEpGX1PUtzsnQsW09td1xBq0RI6oFc56pYqI/8848VKuNDMm6RSzRN4AsTJ2QdIZivz lrbSw7rgp3yUs7CpDV/lnZZvZMc4yW9ylBbpxmC7hypmDJHOX19XmH2ryCmzEvrEqaOV EtSiibV/d3bCBDwvEkEON0VMNCtfuiA7jdSDFR3mn4xAPAhKt8A+cqMWas9AAqczRwjW x+T5EGPk5mYq5ECOARf7xiOlpLYabKoJs3N5Iw7mWoaOL1hHsoKvXUBRfiB2Titot1Uy e4yA== X-Forwarded-Encrypted: i=1; AJvYcCWVXDo+IU1oA/HHGS/nLJm7t2GMcS3a7gdvLOq3/lj3NrWBVNAr48qracKODvLEqhpOMLk=@lists.linux.dev X-Gm-Message-State: AOJu0Yz8G8gfHVrw2jWBcQxzBRIPeu3mB8vTrgZppbNvTO+l+ZTL3XG2 B3CnMI2VkhSf82d6cEsjVSRfTkI/KD3ixJQzNy+qQw4dxtJxbccP6Xn49leu+g== X-Google-Smtp-Source: AGHT+IGmAxnIT189WVUBwg+x/R9UvWvqRDVNzUhwwxur3BAKszcZq3coNxLRGmF9WP2isGNKo1o/8A== X-Received: by 2002:a05:6214:5706:b0:6bf:7bcd:78e3 with SMTP id 6a1803df08f44-6cb3b643feamr164774016d6.29.1727697883855; Mon, 30 Sep 2024 05:04:43 -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-6cb3b694369sm38822536d6.144.2024.09.30.05.04.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 05:04:42 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 30 Sep 2024 12:04:14 +0000 Subject: [PATCH 19/45] media: platform: ti: Use string_choices helpers Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240930-cocci-opportunity-v1-19-81e137456ce0@chromium.org> References: <20240930-cocci-opportunity-v1-0-81e137456ce0@chromium.org> In-Reply-To: <20240930-cocci-opportunity-v1-0-81e137456ce0@chromium.org> To: Sakari Ailus , Bingbu Cao , Tianshu Qiu , Mauro Carvalho Chehab , Greg Kroah-Hartman , Hans de Goede , Andy Shevchenko , Hans Verkuil , Mike Isely , Olli Salonen , Maxim Levitsky , Sean Young , Sergey Kozlov , Abylay Ospan , Jemma Denson , Patrick Boettcher , Ming Qian , Zhou Peng , Andy Walls , Laurent Pinchart , Michal Simek , Jean-Christophe Trotin , Philipp Zabel , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Eddie James , Joel Stanley , Andrew Jeffery , Hans Verkuil , Tomasz Figa , Marek Szyprowski , Tim Harvey , Benjamin Mugnier , Sylvain Petinot , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , =?utf-8?q?Ni?= =?utf-8?q?klas_S=C3=B6derlund?= Cc: linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, openbmc@lists.ozlabs.org, linux-aspeed@lists.ozlabs.org, Ricardo Ribalda X-Mailer: b4 0.13.0 The following cocci warning is fixed: drivers/media/platform/ti/omap3isp/ispstat.c:771:21-27: opportunity for str_enable_disable(enable) Signed-off-by: Ricardo Ribalda --- drivers/media/platform/ti/omap3isp/ispstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/ti/omap3isp/ispstat.c b/drivers/media/platform/ti/omap3isp/ispstat.c index 359a846205b0..603439afe582 100644 --- a/drivers/media/platform/ti/omap3isp/ispstat.c +++ b/drivers/media/platform/ti/omap3isp/ispstat.c @@ -768,7 +768,7 @@ int omap3isp_stat_enable(struct ispstat *stat, u8 enable) unsigned long irqflags; dev_dbg(stat->isp->dev, "%s: user wants to %s module.\n", - stat->subdev.name, enable ? "enable" : "disable"); + stat->subdev.name, str_enable_disable(enable)); /* Prevent enabling while configuring */ mutex_lock(&stat->ioctl_lock);