From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 00F0D352FBA for ; Fri, 5 Dec 2025 07:26:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764919603; cv=none; b=Ulq7gQbTS0tLaUmqtYH421r4uCvtsCoCt+/Ga4sCzezy7C1rKnjPGww5b57CJUfMZPQuGHI5CjZXWAJKdZvcDJPLhvEI/AZIoiNtIB+l7KXbt/M+pps6+6WM3KnLrLrCQzyTg5tTY+t+eNISfMYnhz9seVCbwrHFZX3ht4V2lEQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764919603; c=relaxed/simple; bh=y6hpwNXHvn8h2JT93xx/rL4yudlgZvynbQSQBzkE8E0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=j+sKZZ4I3oGhNrhY8bb0SmSfxAsbDUxNE9Z2ofRC/6ilngPz4hXSmoJ3ronK/rW7sfthnh0b2e7LfKeH00TiTte2siQAzat1/eGBNmUpagnKQWJ1EBa1WIMiMZIl7KzYxG57TaJu++E2+fc3OQFPdXxhHdYBl3YvzHbnL414g9o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=gY803Stt; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gY803Stt" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-477563e28a3so13466455e9.1 for ; Thu, 04 Dec 2025 23:26:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1764919600; x=1765524400; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=1/xSk7k7y5ORewyP92d4zP5k+wuexOEfuZzjXOsxttE=; b=gY803SttmE1XlA5046wfuDQdAxo168kqIb2Nd8VcIYqEwPTHQ0KkhOKm03rUR26x4l AMH04b7xJZBX/lxYLn+jvt6gHj7Ly0SA0hoVRDOk1DL+Ix5htPRT7nu+heKGtvdyvHDk 918SZV7vi54pzNQVq2fDxkw0GhLW7fChzeGWSzrAXxv5lhwUxjqvfPOwtnD+v5Mtj4jC tZQG3zCIzirNH+l9IgDRcPnY40y5uPh8BEwsCfLNin9lJt5AAD3/w5JPWCoymXLj/hiu Q9TsgiW3kB3GkBhNHIQ+L2D4A1xH9UkDauGs0UJ97j/cTjHCNCeOmibQoGzClGHkc1yg JQYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764919600; x=1765524400; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1/xSk7k7y5ORewyP92d4zP5k+wuexOEfuZzjXOsxttE=; b=N2Z8P313s5bkjBs2oKbe42YX2dyRVDH+gKjoyfu0DWkRqi6p6EmoPfe1QS6GQgr35A AH7nF7eCnO6rLBFKdnnOWBXEBx/Y9FnDTrFy/oIHRdt9zOmApYjiAcfNMzLSqVTtoDYC JqQcs4Owk6A8I9S1/Avnbr9UerALKCXaK5jeEoeULecr5lnpuQMMSb8iC/xAaH0bU2QI D69Y1pySKNFNB5Be2p3UVC++ud45Tt/+vT3WRZf+FLFEWRx5vocjJnmxikRk6DBzvJd8 l2vXFgIyi4UR9nvbRWo8EB5KcQFsz2qQajCksmFoYH6BWDk0JSatKaaaX/G2MKTqkOmT +Qkg== X-Forwarded-Encrypted: i=1; AJvYcCWmA/0/fjlUMjQJB8uGjAXzQQcDOKqFRWDGy+PF2PjQosiBATNhhT+52N0/thmlKrHo7k/VuLehjuar/3o=@vger.kernel.org X-Gm-Message-State: AOJu0Yz1oRYZRQTIvfRNZStszPVVBw3RtKQEYKEiQMBEy59GX6ITmt3P nVlPCB6cGt2TPO4jswiYR0jglJ3Ue+2fRk5PcBLxQpMAmFkJYjxoN/+bQpJwVI1rXyc= X-Gm-Gg: ASbGnctbKnYOz64KwaPT9g/SMr1sA6fXB0nSDN2TTd4xMatkEPqpm6EGLuDRPBxFILb 0D5368uK7E14bG5R4QKzkINjUNu6RZXFQukJS4VJWOgbqms8RQjii4hZyAs31gX8yP0T+BXSHv3 kIWHmcVuAJrSmes3DHnW1N16hyIXYkoJxAkP5B/Hcvk+m0owavh6SGOBVp5HrGWAl7V+Td1RWcZ UQhJCBYbB8lNA/Iz/6zva9cK96YpMelkKLjTHISjUP/OrLAxh+vsA+98DwQKL/oV5x+AmvAyLhu ZNkpQ3fcc8V51zSPjbxDNvxCqPeQXOMQIho4iF+glibedslkXp0rJZZtQWyO+ULb4vIzSslp6CM 5+zBXUszgoXa3HaVLUWAnH9ixpiwK909CpvilROXT7XnncB+ueeENr3GaucKCB6KsTdNRNmZ32M 4iZH46wAjFHfSjdZhf X-Google-Smtp-Source: AGHT+IF4zI+PS5QqylDs49iI5Q83p+mebfmgs63dSePFEMk3FtdfDXsG+qtXKiS/FoLXt0OZ9d72Eg== X-Received: by 2002:a05:600c:4e89:b0:475:ddad:c3a9 with SMTP id 5b1f17b1804b1-4792eb438d0mr65416405e9.13.1764919600168; Thu, 04 Dec 2025 23:26:40 -0800 (PST) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-4792b140cf4sm65734635e9.5.2025.12.04.23.26.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Dec 2025 23:26:39 -0800 (PST) Date: Fri, 5 Dec 2025 10:26:36 +0300 From: Dan Carpenter To: Julioccps Cc: hvaibhav.linux@gmail.com, johan@kernel.org, elder@kernel.org, gregkh@linuxfoundation.org, greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] staging: greybus: arche-apb-ctrl: switch to device_property_read_bool Message-ID: References: <20251204231110.65847-1-julio191096@gmail.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20251204231110.65847-1-julio191096@gmail.com> On Thu, Dec 04, 2025 at 08:11:10PM -0300, Julioccps wrote: > Switch from the deprecated of_property_read_bool() to the common > device_property_read_bool() API. This makes the driver agnostic to > the underlying firmware interface (DT or ACPI) and simplifies the > logic. > > Since the driver is no longer strictly dependent on Device Tree, > include directly for the struct > of_device_id definition, instead of relying on implicit inclusion > via , which has been removed as it is unused. > > Also rename apb_ctrl_get_devtree_data() to apb_ctrl_get_fw_data() > to better reflect the agnostic nature of the new implementation. > > Signed-off-by: Julio Cesar Carvalho de Paula Souza This doesn't match your From header. > --- > hanges in v3: > - Added version history (changelog) required by the subsystem maintainer. > > Changes in v2: > - Updated the subject line to match the subsystem standard. > - Updated Signed-off-by to use full real name. > > drivers/staging/greybus/arche-apb-ctrl.c | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > > diff --git a/drivers/staging/greybus/arche-apb-ctrl.c b/drivers/staging/greybus/arche-apb-ctrl.c > index 90ab32638d3f..eea9648a461c 100644 > --- a/drivers/staging/greybus/arche-apb-ctrl.c > +++ b/drivers/staging/greybus/arche-apb-ctrl.c > @@ -10,13 +10,14 @@ > #include > #include > #include > -#include > #include > #include > #include > #include > +#include > #include > #include > +#include > #include "arche_platform.h" > > static void apb_bootret_deassert(struct device *dev); > @@ -314,7 +315,7 @@ static ssize_t state_show(struct device *dev, > > static DEVICE_ATTR_RW(state); > > -static int apb_ctrl_get_devtree_data(struct platform_device *pdev, > +static int apb_ctrl_get_fw_data(struct platform_device *pdev, > struct arche_apb_ctrl_drvdata *apb) ^^ This line needs to be indented differently now. > { > struct device *dev = &pdev->dev; regards, dan carpenter