From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 14F8034CFAB for ; Thu, 11 Jun 2026 06:14:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781158470; cv=none; b=qeg0L//NElI2cSt1vGUA6xXeIpeOVVEUMbOIjh6/9gZxvyz2U5WVxNUBjEJslUlZFSiHn+rlZPXRp9AHTpwYWr5Eb23w/498BKE3uzyyxOY11mioPEQLaoxoWzCCSPrx4opFkPHNm6OPqaXdJCQU1iT9ZEBNWsdI+P4pWpBXEVc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781158470; c=relaxed/simple; bh=ZfgJxhiXGAMiDs2dI9HeWzbQGt/5F4/ByJE1n7rDnMA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=au3Mj0oJtX9rQ+yXlxJJy2Scx8DeNSyts3cDNrbDx4nGJqin4udyT/GCoqdVkGJ1ROQ3rMek/RqI2tyFeprmZqoZ1T4jbI2PoNlg80KdP718ybCt3kcD2eR+ED8m263CvnHVRgOZeGYizaCF4AMIqVf7cyS28Ge6v8JWiI5zWSA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BQZ6ppPW; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BQZ6ppPW" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-45fd45e596cso3785867f8f.1 for ; Wed, 10 Jun 2026 23:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781158467; x=1781763267; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3TLceGIgYtQktvlq3SjtOMVDSRSFyQjcK599lhjYa9E=; b=BQZ6ppPW/vOX3NEVrFodC8cx6CR5lIvaEDDYQz+9jlay8LzW+H1SMJrjkmbpXQShQF y7GNLOC1OO3ikMBLzko6Z13MY5Tk/BfNI2ZoxmjLR5Ust2P7l/5DmxkaxsgOESP1l1PF OxH+j2IFiJIBL3jdpuZlPjXkJsTBU7mnqfFPiCE1+zKXTpsTr27rcdBk0iUxwYNoRhGw RefU1pQmE1aQWdGMgsZkhUiSyKgOVmk3vT7dtFRtb9JhqaaKnaMjpXEi4po2hPutq6Na OcUgF1dU1/QUtFeOoiH73hIisakXF1cAxPbyrRyy4t7nb0Y/QQ/83pjZgd8ahCCOQeQ7 xjzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781158467; x=1781763267; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=3TLceGIgYtQktvlq3SjtOMVDSRSFyQjcK599lhjYa9E=; b=TWtTSCkx1KRUdP/YUaO4kzBZv75LHwHOwlh+p7rU+zlb046cV9Z0v5q4+fDxSTiogA XMiadabHujJPYX5Bo1bBplOngJYfay/Bjf3dVOxdKdkSsj+LtHzwtTWFom7+/KPCYyUT m6CwzawWRG2C7bEl+W/wbI0P5zodnb0eaz2umRsjWJdUBTJuFpoHVDJKyoGJVBQyPjqS cQHvG9cQpS0eqeZ3j/wZINXhFwsFXvLh9MvaLNQ18UtgEUhUzqLjVv7Cyy7ZTn9kAHF9 rJ4E+h5Elh+61d9sfCH9YAadhxxrLvcI8F8UfPfLiiLpmvZIMIn31W1RBqwUlV1Q3jxD 1aJQ== X-Forwarded-Encrypted: i=1; AFNElJ/j35rnJ67xCsn2j6yziPCscIeOkHTwrPK6Zk6uJqe/7DQUd9DbPbKDOw/QMawEH01acludPkNsrm8fjzw=@vger.kernel.org X-Gm-Message-State: AOJu0YxhBSxnsv5bMobuzW7xJhmrOhQIgJtpCgt5UEIWZGu++QFnPH5p 5z+K/9dKIBZhl/cwLGUe80P+uHO5ZU9HqxipiLgW1O9WypH0+NG4o22w X-Gm-Gg: Acq92OFyNPw1iLnZb6QwOqGRuZuASSRhyuI1Wnni59wmQTmOyWbpDY35zyviW5nrdOR c8Y49aYzP7nTGvafNpp/+BBIfQ6mfpANg5PFWTn/CnOGAuvSroRnq/zTgAsO5nK4hbVDoNTHsaQ h39NY9tnxeHAC1vqO7ABRgY9m2LYVHZASH9K44ChM5hPKTDK2+4kCl+Pau2YC3ohMTbtYpD2et9 EMTOc++rHC69EhPdBL2l2L1YZI93S0dokDRlhYDFm6AxhALQA0qThZrdMdFVfx+8meHxkgdIiBr jwHrr9x4h1iLHMn2IlPpBrKKhssXV3vFjOsxEdaBwjq3LScs/v7iWWJTQiN10XCsV4n/P5sxVvR cIh+60RAhq9YHedEH+QOlTsxQZKvYRIaox2HtmBCKhYxI31BXTSLr6tZ4lxnriq4xqIH1aGrJ9h efllv+4GyHLMMvbcPBGUiJvaZTQvcCKIbf66tPvAsAbP7Eyv0F3hz568VjAwWIMcngF/UOqGgZ9 jPfrevfn47FWLBXbIaI5LlK+xNMBh5qvQ1dYT+g X-Received: by 2002:a5d:5f47:0:b0:45e:ea9b:edfb with SMTP id ffacd0b85a97d-460677cb174mr1805311f8f.39.1781158467136; Wed, 10 Jun 2026 23:14:27 -0700 (PDT) Received: from workstation.speedport.ip (p200300d507395eb363324778b2a2e5aa.dip0.t-ipconnect.de. [2003:d5:739:5eb3:6332:4778:b2a2:e5aa]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4601f2f2710sm61047792f8f.14.2026.06.10.23.14.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2026 23:14:26 -0700 (PDT) From: Mert Seftali To: Hans de Goede , Mauro Carvalho Chehab Cc: Andy Shevchenko , Sakari Ailus , Greg Kroah-Hartman , Kees Cook , linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Mert Seftali Subject: [PATCH v2] media: atomisp: gmin: Use str_on_off() helper Date: Thu, 11 Jun 2026 08:14:17 +0200 Message-ID: <20260611061417.11747-1-mertsftl@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Replace the open-coded "on" : "off" ternary with the standard str_on_off() helper from . This improves readability and reuses the kernel's existing string helper instead of duplicating the literals. No functional change intended. Signed-off-by: Mert Seftali Reviewed-by: Andy Shevchenko --- Changes in v2: - Add a blank line between the system and local includes. - Join the dev_dbg() call onto a single line now that it fits. drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c b/drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c index 4026e98c5845..cb60cb3fab48 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c +++ b/drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c @@ -13,6 +13,8 @@ #include #include #include +#include + #include "../../include/linux/atomisp_platform.h" #include "../../include/linux/atomisp_gmin_platform.h" @@ -916,8 +918,7 @@ static int gmin_acpi_pm_ctrl(struct v4l2_subdev *subdev, int on) if (gs->clock_on == on) return 0; - dev_dbg(subdev->dev, "Setting power state to %s\n", - on ? "on" : "off"); + dev_dbg(subdev->dev, "Setting power state to %s\n", str_on_off(on)); if (on) ret = acpi_device_set_power(adev, @@ -930,7 +931,7 @@ static int gmin_acpi_pm_ctrl(struct v4l2_subdev *subdev, int on) gs->clock_on = on; else dev_err(subdev->dev, "Couldn't set power state to %s\n", - on ? "on" : "off"); + str_on_off(on)); return ret; } -- 2.54.0