Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2990005pxb; Fri, 12 Feb 2021 06:40:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxehAxcAG7/f0yActDvA8tQOBqeOqyGfq8nOT7reELolKD+x0KqI2FuRLtYseUVL/VoTGK/ X-Received: by 2002:a17:906:ca15:: with SMTP id jt21mr3486782ejb.58.1613140809504; Fri, 12 Feb 2021 06:40:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613140809; cv=none; d=google.com; s=arc-20160816; b=EokkTcIzQ9DicEwrIihYFBVr1XXF3NlHqixpNRnqMM2Mpk855LNfiCAHZiKpTp+alB 65Jz8wjBZJ0Jc+pKRcowLwR9HFpnSH9NYOeCdyCYcr5uefrBUI7KW0xnc6ulkTQteCuX UQAHH65KFHM2wzLB/wg1qqUj1gFydgwLnknYNJMYd9t7S6BMoUIepe79655x6i/M6akm 1IWajqmU7aGsSfdM5bis6ZokhXw5OGRNwrxK32CgO40YYuG68G+QzJCWuQdXYklUG7JE Ch2rXtglB7BWrLTDKnd79N2s9U961+W4WAMlizIHcyzMQBmnAl3AjQXZZhBw8XUwuof5 oplg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=eidZG+I3Er5dt5H72FEzd2tmVBif8YR3658fF+5wafQ=; b=DKv+1jLQ1+Am4wTtuGLSSuUcHvZd4VpR7awgmdhGo4eFBS67sK1HXWe9evPVKzSTNx a6IU32UHAW9tPis1bJKSZ9LjFw+5aWpXUxIargxTiF+YyLMmvIye1pssID/vgte49ZJG lwGgAyv3qQGlIzZs7cWpmsrZvpqG9OfOrZlFkQDjqTrzfvNrtCQJ6VkZNRG1ZdcPn9xz lXESn7Yn7QK4rNkUahYIMaxr6pOu29EXYnXCJPZYVOV4GU+utUUsBaKfsVSHTBgqPKEN FKzDNKWYIRYHPxiKkxANPfOXKSM9+wSwuWxJ9dAZsPDn7NPHFcLM4WYlGy6E0ihn8jOX oilw== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si6542686edx.400.2021.02.12.06.39.44; Fri, 12 Feb 2021 06:40: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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230221AbhBLOiD (ORCPT + 99 others); Fri, 12 Feb 2021 09:38:03 -0500 Received: from mail-oi1-f180.google.com ([209.85.167.180]:40747 "EHLO mail-oi1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230249AbhBLOhk (ORCPT ); Fri, 12 Feb 2021 09:37:40 -0500 Received: by mail-oi1-f180.google.com with SMTP id 18so10153127oiz.7; Fri, 12 Feb 2021 06:37:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eidZG+I3Er5dt5H72FEzd2tmVBif8YR3658fF+5wafQ=; b=PVrNTr+nT6+SHbO45LQdNW1WBUI25D106AoZGb0nWrS8M1DJcu/paX/0HZ4DsEswYs pOzVyCOR924GTeVOw6wE4TikzewhAavTc0hy4lemJae5PaWywCYvoi4stmwyyKltGZW4 CWvLNdUW/l+ajlkoo8t4WidufdnRNEEr7/I/XmuCkwFdU8/+X3FaFokB9Oyr987SgGtm U7wAkgZXTNuuX/veNwI21rb06OUVzAL1/BfzzyhKK3/XEg2ON7ivSwP15HGbE68gbXaR WfWvc74p7Z8KwUWkQ6xMwEhhBTdRB/Fh9gg0mgyazEpIwLP7P3aylJxc5298/Si1SNrB mMmw== X-Gm-Message-State: AOAM531usFDK+Egez66fOu1eH7XMyUbZjSuF89+FIv0N6MBKuNoM29Zk KniFE9IdsbA8loDj8Ggvw9epmgoSTd3bJqif35M= X-Received: by 2002:aca:3d85:: with SMTP id k127mr2018082oia.157.1613140618202; Fri, 12 Feb 2021 06:36:58 -0800 (PST) MIME-Version: 1.0 References: <20210212141121.62115-1-andriy.shevchenko@linux.intel.com> In-Reply-To: <20210212141121.62115-1-andriy.shevchenko@linux.intel.com> From: "Rafael J. Wysocki" Date: Fri, 12 Feb 2021 15:36:47 +0100 Message-ID: Subject: Re: [PATCH v2 1/5] ACPI: property: Remove dead code To: Andy Shevchenko Cc: ACPI Devel Maling List , Linux Kernel Mailing List , "Rafael J. Wysocki" , Len Brown Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 12, 2021 at 3:16 PM Andy Shevchenko wrote: > > After the commit 3a7a2ab839ad couple of functions became a dead code. > Moreover, for all these years nobody used them. Remove. > > Fixes: 3a7a2ab839ad ("ACPI / property: Extend fwnode_property_* to data-only subnodes") > Signed-off-by: Andy Shevchenko Patches [1-4/5] from this series applied as 5.12 material and please see my comments for the last one sent separately. Thanks! > --- > drivers/acpi/property.c | 20 -------------------- > include/linux/acpi.h | 21 --------------------- > 2 files changed, 41 deletions(-) > > diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c > index 16b28084c1ca..22ccab4e7c6d 100644 > --- a/drivers/acpi/property.c > +++ b/drivers/acpi/property.c > @@ -841,20 +841,6 @@ static int acpi_data_prop_read_single(const struct acpi_device_data *data, > return ret; > } > > -int acpi_dev_prop_read_single(struct acpi_device *adev, const char *propname, > - enum dev_prop_type proptype, void *val) > -{ > - int ret; > - > - if (!adev || !val) > - return -EINVAL; > - > - ret = acpi_data_prop_read_single(&adev->data, propname, proptype, val); > - if (ret < 0 || proptype != ACPI_TYPE_STRING) > - return ret; > - return 0; > -} > - > static int acpi_copy_property_array_u8(const union acpi_object *items, u8 *val, > size_t nval) > { > @@ -995,12 +981,6 @@ static int acpi_data_prop_read(const struct acpi_device_data *data, > return ret; > } > > -int acpi_dev_prop_read(const struct acpi_device *adev, const char *propname, > - enum dev_prop_type proptype, void *val, size_t nval) > -{ > - return adev ? acpi_data_prop_read(&adev->data, propname, proptype, val, nval) : -EINVAL; > -} > - > /** > * acpi_node_prop_read - retrieve the value of an ACPI property with given name. > * @fwnode: Firmware node to get the property from. > diff --git a/include/linux/acpi.h b/include/linux/acpi.h > index ea296289a94c..14ac25165ae1 100644 > --- a/include/linux/acpi.h > +++ b/include/linux/acpi.h > @@ -1121,14 +1121,9 @@ acpi_data_add_props(struct acpi_device_data *data, const guid_t *guid, > > int acpi_node_prop_get(const struct fwnode_handle *fwnode, const char *propname, > void **valptr); > -int acpi_dev_prop_read_single(struct acpi_device *adev, > - const char *propname, enum dev_prop_type proptype, > - void *val); > int acpi_node_prop_read(const struct fwnode_handle *fwnode, > const char *propname, enum dev_prop_type proptype, > void *val, size_t nval); > -int acpi_dev_prop_read(const struct acpi_device *adev, const char *propname, > - enum dev_prop_type proptype, void *val, size_t nval); > > struct fwnode_handle *acpi_get_next_subnode(const struct fwnode_handle *fwnode, > struct fwnode_handle *child); > @@ -1230,14 +1225,6 @@ static inline int acpi_node_prop_get(const struct fwnode_handle *fwnode, > return -ENXIO; > } > > -static inline int acpi_dev_prop_read_single(const struct acpi_device *adev, > - const char *propname, > - enum dev_prop_type proptype, > - void *val) > -{ > - return -ENXIO; > -} > - > static inline int acpi_node_prop_read(const struct fwnode_handle *fwnode, > const char *propname, > enum dev_prop_type proptype, > @@ -1246,14 +1233,6 @@ static inline int acpi_node_prop_read(const struct fwnode_handle *fwnode, > return -ENXIO; > } > > -static inline int acpi_dev_prop_read(const struct acpi_device *adev, > - const char *propname, > - enum dev_prop_type proptype, > - void *val, size_t nval) > -{ > - return -ENXIO; > -} > - > static inline struct fwnode_handle * > acpi_get_next_subnode(const struct fwnode_handle *fwnode, > struct fwnode_handle *child) > -- > 2.30.0 >