Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp830630rwr; Wed, 19 Apr 2023 13:53:39 -0700 (PDT) X-Google-Smtp-Source: AKy350Y3LLFNAXUBWg2nZkvtJOV1xYzBhPIFjWrAIqr1NpRJI3VJwtOlc28zKghd1p9LLrKMegWX X-Received: by 2002:a17:90b:108f:b0:247:9450:eb6d with SMTP id gj15-20020a17090b108f00b002479450eb6dmr3662362pjb.49.1681937619438; Wed, 19 Apr 2023 13:53:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681937619; cv=none; d=google.com; s=arc-20160816; b=a9UUzQvgMKx7r12rp400PMJrjHi1yTHI2rKYWrc6Sdji4/27Ic4Yx7LbaSket9eKy7 uqktP0KoV1SYQSmBbgO2SRY7RcNzLBskcVAwAkKYaUKZ87PFcuGjbx+OR+i6RAz3B6sW DftldYQfdNmClQbVcB3CL9h0mmthn2GbUKjhuyTMr+ClNzkTgMf1Fj1zgsaNb31dri0a RtG0lxNqxBaF5fj0ywiIpAC3sEiR02jmBvEkThRfRdXdVhd9diuB23FlsiDjUB3IDcJH 2QnUUcM2UgQmpGWRfOkHbe2UmZgc9UZGP4DXePh9VFm3X41zHeDEGjVeJuUIU68qBWxN VBRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=vmh7qfKZ8/gMLYDl79cC+Ip5pLS1KgBBHuWc2z2mjmY=; b=bKPK/JhANJRNvuAmHSpXRoIpnWwtc/ZJOWYh8/cFT4BwcXlNjvHxLakME0VLtoTQLN s6CIUtpPXJhPtdwwEme+lIUpu+l1hpZ20NP13/GyTGMBuzEB7fgyg5tQDufSnS2ZlW8/ PxiEdfcqol89sgUeZZK6xDi4qFf0glJK2DwH77WNR8unfnUs7VnJ29eGjGKhk7kezarj m3WQrJP4FkL/moVPiliZyhUbzUY4SVWUcbvQD2GkCKfMSwq4v3o+HnBDADJrmxFkOpMf bZ51kSkj8fAsKT7bLyuxno2dsSJeWGVBD6FeKEXHw4jYldcRXvDEAZQfOHXKm5JczQgJ V4Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=DhlCIhAw; 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=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oa18-20020a17090b1bd200b00247a55b01dcsi2539170pjb.174.2023.04.19.13.53.27; Wed, 19 Apr 2023 13:53:39 -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=@alliedtelesis.co.nz header.s=mail181024 header.b=DhlCIhAw; 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=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230519AbjDSUpX (ORCPT + 99 others); Wed, 19 Apr 2023 16:45:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230051AbjDSUpT (ORCPT ); Wed, 19 Apr 2023 16:45:19 -0400 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [202.36.163.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A83915BA1 for ; Wed, 19 Apr 2023 13:45:16 -0700 (PDT) Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 9312B2C085F; Thu, 20 Apr 2023 08:45:13 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1681937113; bh=vmh7qfKZ8/gMLYDl79cC+Ip5pLS1KgBBHuWc2z2mjmY=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=DhlCIhAwPYXEi7tMFOFfLTwykV+q0QX6Xk2P/feWufHHBtAD3E6bTrMO7Lt8T5q7A sO0ThExBtkRPLUm8GhBjHjAterrmeMscW20vFqMZyonN2lC8Z/sWmU6C63YCOLSm8K afng7B8MPD3EciPW6fGQF+qBClgiBvHLhrb+4bWZw5e0MELiC77wikoMOxrx+ppHJd duLJUPoy/7AD88/jhgomuL3gqn9HJ/7IqR++p5ZDABjoftY2+IhgBfMIBTy3UwHoUt nyNUaMBJQFjD1btgi12hRVdxYKgeItP7XkgbrpWPtOHgMM1LZXRCBVFGNU/aWOmy74 8PhcjqcJkUOdw== Received: from svr-chch-ex2.atlnz.lc (Not Verified[2001:df5:b000:bc8::76]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Thu, 20 Apr 2023 08:45:13 +1200 Received: from svr-chch-ex2.atlnz.lc (2001:df5:b000:bc8::76) by svr-chch-ex2.atlnz.lc (2001:df5:b000:bc8::76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 20 Apr 2023 08:45:13 +1200 Received: from svr-chch-ex2.atlnz.lc ([fe80::a9eb:c9b7:8b52:9567]) by svr-chch-ex2.atlnz.lc ([fe80::a9eb:c9b7:8b52:9567%15]) with mapi id 15.02.1118.026; Thu, 20 Apr 2023 08:45:13 +1200 From: Chris Packham To: Guenter Roeck , Greg Kroah-Hartman CC: Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , "Rafael J . Wysocki" , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] device property: make device_property functions take const device * Thread-Topic: [PATCH] device property: make device_property functions take const device * Thread-Index: AQHZct3ODCHADTJ36U2SwAwrqFQ9aq8yUMYA Date: Wed, 19 Apr 2023 20:45:13 +0000 Message-ID: <812c77c1-4d1d-74f5-ee03-683959e73d89@alliedtelesis.co.nz> References: <20230419164127.3773278-1-linux@roeck-us.net> In-Reply-To: <20230419164127.3773278-1-linux@roeck-us.net> Accept-Language: en-NZ, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.33.22.30] Content-Type: text/plain; charset="utf-8" Content-ID: <26E268154DED3D43BCCE68154781D275@atlnz.lc> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-SEG-SpamProfiler-Analysis: v=2.3 cv=VfuJw2h9 c=1 sm=1 tr=0 a=Xf/6aR1Nyvzi7BryhOrcLQ==:117 a=xqWC_Br6kY4A:10 a=75chYTbOgJ0A:10 a=IkcTkHD0fZMA:10 a=dKHAf1wccvYA:10 a=_jlGtV7tAAAA:8 a=rYdy4ewgrjKWxwD_0SAA:9 a=QEXdDO2ut3YA:10 a=nlm17XC03S6CtCLSeiRr:22 X-SEG-SpamProfiler-Score: 0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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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