Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1506107rwb; Tue, 27 Sep 2022 14:16:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5rSX+XN6inJq06uynuQUd8RD9Ts5Mpn9/+rM7Hpi817vTha9okqHb7FDTlaQiKGmc/H2m9 X-Received: by 2002:a63:1917:0:b0:43c:1471:52b7 with SMTP id z23-20020a631917000000b0043c147152b7mr24616688pgl.522.1664313377414; Tue, 27 Sep 2022 14:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664313377; cv=none; d=google.com; s=arc-20160816; b=QvTgRXdoj1SxfYN6iG5GJpPdoZV6dkAL34wMMnuXpr09LPkN8gYxu3jTsPPOYtIgcL URWuJRMbswG+b/22fd6d3aib9W1j+WeVh7oyBoxfWRPed6F4F9pb8US8oO7fxAgEZH/n EGMN20UHooxqBjVB9pWPrF6rbWM+ZgqYGXCUo979qyfr48xJeZGLid+NFtbLCjW83tCM dezCo1qzM8pgaA3tqOGbopJdW4WXNFeJQCJwQ1u+S87SWqzRQTTx5Yi4p9+YxTk7dQW+ E51pd/Q84faDTOlrtMZV6vfJGnjCfoea4G+UKrRVCu4EKW8RCT1ang7LQ7nyVv1MElcI m/5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rVgjo7ywVpN5WhRQW9L3haamKANcfbrBJ1lKrppVaIU=; b=k1CQY5MJQAp8jbcOL9MlqnfdD2ZtR9fH/gHI8ixa9qvQ69Z1aJ4EEup+KzK+1xecGM DOYyrbuOOvD8hte0y7WfwSdYbWYOxEyfOAnnBSN6EKWqHZOO/6kfilHbHWznCLAH9s3t dh9jQ+iHiPu1TcaV9hji1VfVs71E4Q0PO6d1vDIySc+drYRXGTAd1eBEk5QFffs95NN9 IcPwueK3Br/Eooaa+3/KOx18OiPqjpdDLH67EuidIZnCygilOJguRoGqoJZfsP33Kj24 dcvHstgwYYxDhG5QYD9ICM/kuZp9kYLj0k8vInNlSEBL9aa+Hoe2O9H9UuZfroB5527C oBIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PV9H88sr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k13-20020aa792cd000000b005583001558dsi480198pfa.150.2022.09.27.14.16.03; Tue, 27 Sep 2022 14:16:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PV9H88sr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231726AbiI0U4o (ORCPT + 99 others); Tue, 27 Sep 2022 16:56:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232261AbiI0U4i (ORCPT ); Tue, 27 Sep 2022 16:56:38 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 536741B34A0; Tue, 27 Sep 2022 13:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664312194; x=1695848194; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=p6QjeJOm29/PJ5sSFT/tJnSgJbIezHA9AkofLr8V7Fs=; b=PV9H88srQVWx5Vc6OjpqnKBQjjXu+7FydE5GjRdKn6UxzmDQvsPQM+ao //lqOh3EyFq50Zl4l8IviC+rvPg2Dvhn1KNlO6vbgz8qOBCXa441m4tZ1 HGxbuYppE/SnJOTUGmAiddJ2cckPkSynPztVEGp3vXZaNldEjDbar+KzR 2bSyUllp/Pppn38yW4ILpdZceLt+7OHWeLhdyyPCXyTV2ZkELNgHeRdp1 lSZdWCwJmAya6o8KovWuUrRpO3YmUEwUwDM8HzSQs8ymbCl0R99VbdPAu 5f99m0Y1a5AMhAsKQpTlTLFZa+ZHUwRfAYpVqFDyQjeKs6zEHY0z2K2Ul Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="301407745" X-IronPort-AV: E=Sophos;i="5.93,350,1654585200"; d="scan'208";a="301407745" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2022 13:56:33 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="747183199" X-IronPort-AV: E=Sophos;i="5.93,350,1654585200"; d="scan'208";a="747183199" Received: from punajuuri.fi.intel.com (HELO paasikivi.fi.intel.com) ([10.237.72.43]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2022 13:56:31 -0700 Received: from paasikivi.fi.intel.com (localhost [127.0.0.1]) by paasikivi.fi.intel.com (Postfix) with SMTP id 93C1620165; Tue, 27 Sep 2022 23:56:28 +0300 (EEST) Date: Tue, 27 Sep 2022 20:56:28 +0000 From: Sakari Ailus To: Andy Shevchenko Cc: Prashant Malani , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Daniel Scally , Heikki Krogerus , Greg Kroah-Hartman , "Rafael J. Wysocki" Subject: Re: [PATCH v1 1/5] device property: Keep dev_fwnode() and dev_fwnode_const() separate Message-ID: References: <20220927142822.4095-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220927142822.4095-1-andriy.shevchenko@linux.intel.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, Thanks for the set. On Tue, Sep 27, 2022 at 05:28:17PM +0300, Andy Shevchenko wrote: > It's not fully correct to take a const parameter pointer to a struct > and return a non-const pointer to a member of that struct. I guess you could go as far as saying it's not at all correct. :-) > > Instead, introduce a const version of the dev_fwnode() API which takes > and returns const pointers and use it where it's applicable. > > Suggested-by: Sakari Ailus > Fixes: aade55c86033 ("device property: Add const qualifier to device_get_match_data() parameter") > Signed-off-by: Andy Shevchenko For the set: Reviewed-by: Sakari Ailus -- Kind regards, Sakari Ailus