Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp227677rwb; Tue, 4 Oct 2022 03:14:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM49zAMoHWuYQs/HiId7fCBFK/ikAslTbTPeQLpdJJBo6GDosPAiVRYCi3SouJbJT1qs4Gwr X-Received: by 2002:a63:b25a:0:b0:44e:12bf:247d with SMTP id t26-20020a63b25a000000b0044e12bf247dmr8891373pgo.366.1664878442029; Tue, 04 Oct 2022 03:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664878442; cv=none; d=google.com; s=arc-20160816; b=Do3/Nth/PAXG3heC5TKniY1BH3YL0QC7T/vyMKHbUJrERAMj1FVkUoHKGMGE2l9F5I t3ycqaifgprww7LQ3BzuUmZ/If6UfyOQkxzTiIeuYxLvThUwfQJOxsEV5HSxfi4qoynq F1SQcVflWO32gaHsWy7s/FimtiyVsHwAI2A42LGKSlq2+QXGpdlJTJI5iGWeX+oOoxtQ PDD7Qa8NlSZi0/zZs1Vb25Tr6DcpAHEb0hoF2OVSYAMmkB9RWGLPmCt8mc019YtcR2R7 pAaKcyayyrbGb63vyfnm1xLUt6xe6Czh4yjpmWdPkbIW7kay7mykU9KXMChl5s6OcE30 ZYbQ== 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=Vv90vb6aFgZ+8vo/PJkzCgB0zDuCqmezbf+U6H7l+Uw=; b=n4edP2usFS0bN1uL7KbsHdzOHUD4eGAC8/TzQFWY40cZips6/k5eK1ApaUFK3zUb9N iFjOIpJdoyVsnqa7HW+rAZtXcK8g2XT9iEnMqTPdNF8D+uV4TLw5tbwjfWk7SpK+DbsI 8h9T2EmcnykQyyOPZYZmeZedtLSedDj0AtnAfktobskBRltXJr+CGK9YgN1kT7eSaP9z /gkEO3whkEeY7ckoF+mi2oZRxHQULwkeFftdXItPIAolD5Lz4s3kFLEw6uhEllp/TWMX ePThpKb+EfzizRGzeVEyUlyNxiyRw8usaW4Xor3OxyhKDEbcGIUTnIKJZ4bUVMyyHohf KtPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JAkLeorW; 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 mi1-20020a17090b4b4100b0020317f7907bsi3149304pjb.4.2022.10.04.03.13.49; Tue, 04 Oct 2022 03:14:02 -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=JAkLeorW; 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 S229813AbiJDJ2M (ORCPT + 99 others); Tue, 4 Oct 2022 05:28:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229820AbiJDJ11 (ORCPT ); Tue, 4 Oct 2022 05:27:27 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39FE01A819; Tue, 4 Oct 2022 02:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664875526; x=1696411526; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=v8zXOAKfLGDO5B2+X5l8nfSTc8z+YjVlJ+kS4JfN4A0=; b=JAkLeorWiBzOoFQGMxoQ00NW/jOEMgfGzhDIvXMYVrcRDmtvjUnx6Hw2 87mFdFgOnopB+VDlRcpn38cz5yOQOtoXIgGPc2AIzsy8j0elXKHf9plgu cG1Lj3/MiIwN7RdCz7RsM/ONrtdb+95UcEDJ6twXh372MuxDwAS8VLRYA 5epQS2JTJPKJx/Jlrq/aKBo2uOSTHkj7sDOZeVDjQdr0LQbds8//ytwTr 4ktsrVEk7zPqxbr3F9MuVeMCpdZv74LaI89ele44cd1Mg3kHNt2ReGXpE 4fgbi5VTdLpUPrtkTyjs2rteafDSUj7QbxgaeaVJpvS4Y6BVCw07UUjo/ g==; X-IronPort-AV: E=McAfee;i="6500,9779,10489"; a="286056509" X-IronPort-AV: E=Sophos;i="5.93,367,1654585200"; d="scan'208";a="286056509" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2022 02:25:24 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10489"; a="712944863" X-IronPort-AV: E=Sophos;i="5.93,367,1654585200"; d="scan'208";a="712944863" Received: from punajuuri.fi.intel.com (HELO paasikivi.fi.intel.com) ([10.237.72.43]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2022 02:25:22 -0700 Received: from paasikivi.fi.intel.com (localhost [127.0.0.1]) by paasikivi.fi.intel.com (Postfix) with SMTP id 2FAEE20274; Tue, 4 Oct 2022 12:15:06 +0300 (EEST) Date: Tue, 4 Oct 2022 09:15:06 +0000 From: Sakari Ailus To: Andy Shevchenko Cc: Greg Kroah-Hartman , Heikki Krogerus , Bjorn Andersson , Prashant Malani , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Daniel Scally , "Rafael J. Wysocki" Subject: Re: [PATCH v2 1/5] device property: Keep dev_fwnode() and dev_fwnode_const() separate Message-ID: References: <20220928105746.51208-2-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,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, Greg, On Tue, Oct 04, 2022 at 11:14:14AM +0300, Andy Shevchenko wrote: > On Tue, Oct 04, 2022 at 09:55:21AM +0200, Greg Kroah-Hartman wrote: > > On Mon, Oct 03, 2022 at 08:08:58PM +0000, Sakari Ailus wrote: > > > On Mon, Oct 03, 2022 at 06:17:17PM +0200, Greg Kroah-Hartman wrote: > > ... > > > > #define kobj_to_dev(kobj) \ > > > (_Generic((kobj), \ > > > const struct kobject *: __kobj_to_dev_const, \ > > > struct kobject *: __kobj_to_dev)(kobj)) > > > > Ah, doh! I had the (kobj) part in the wrong place, thanks for that > > fix... > > > > Ok, this looks better, let me see how well the build breaks with some of > > these changes > > I believe I can rewrite my patch like this and then it will be much nicer since > we may constify all the rest without calling __dev_fwnode_const() directly. > > Are you agree? Sounds good to me, thanks! -- Sakari Ailus