Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2620C678DB for ; Mon, 20 Feb 2023 11:03:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231301AbjBTLDj (ORCPT ); Mon, 20 Feb 2023 06:03:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229913AbjBTLDf (ORCPT ); Mon, 20 Feb 2023 06:03:35 -0500 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2132.outbound.protection.outlook.com [40.107.114.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EAE57EE8; Mon, 20 Feb 2023 03:03:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JpFN7U4rLsEBfAY8YwBcZQEMmbYTgXUY9a8+9q5lFA0gRmzyBXECsqcpeoPuNHM0ximSE9ge2zxmI9UnJSNfPvj13GPDrCyrWwJRdsUEDeOlFWslrJ1m9gP2bn9PSGk8/tgINKos+q4mG1yJk29llFr2loW2SDLuQxj1JeSkp/MhFzgG1nvXvCYrtdzIK0khvqL8hL5jhqJP6IfJgh/DJus6vQHKIWoXgGRxt44Y6wgJFa5AZmU/xacP5wgOBGc3g4sxQTANWBGpEmXRVTgEotRKC8+VVQtRpZSg9gE3L6aYIBzZy3aRqx/7Q+io7SqIOyAPNpBJM3yevcbEFClc5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sxdORYDv3Yb/huugWe4C5yo2RM/ujy63SPJMp8W9e/g=; b=aQDLHjfNzp2abHQqNOYNGZFyrz8SPYSqyr98FVZAiQ1P6itIqHK5IFwAsN6uueGXPzStpcF+k5F4Uq8vlti/ypNHMUDpTpkK81IoPejrsBJp6UxD3C4w+UIc1kFu9wl2e2h3jHaNE9GNloYxBnNBRCcPkAXI1A0UMFCpQmRp7u7nux65oww8BSKF28F6RglmA8Boe79Df5nFpjBGf2+g1EbRKEDhRcs3pV4YhNYgauO5iTJNIN6B23pUxMoIIhUv8G7n2QeE8Jlxe0suyRFo/Od3L04MwAvHrvt8786MOGBlTq+ATXuvz5VJxtCBI61ejPGVk7lS4ZG3MuIugTuECg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=dm.renesas.com; dmarc=pass action=none header.from=dm.renesas.com; dkim=pass header.d=dm.renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dm.renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sxdORYDv3Yb/huugWe4C5yo2RM/ujy63SPJMp8W9e/g=; b=FjFnUXT61Yz6Prm5G9eJGXW/nu1hU8MvmjjEaCM9iAzfyQKjLJJxHjE2Bnx6RqR25QYmhzB2tUSCaKuHKRF5gM+zSyXbXMupA0c0UGzbnBr3fD44i5BmFcF5LlOYQawlW0QiV089S1zawQKOGSmC3Bf2Yf4MmIgL+y5jY4r8I+4= Received: from OS3PR01MB8460.jpnprd01.prod.outlook.com (2603:1096:604:197::13) by TY3PR01MB11211.jpnprd01.prod.outlook.com (2603:1096:400:3d7::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.20; Mon, 20 Feb 2023 11:03:22 +0000 Received: from OS3PR01MB8460.jpnprd01.prod.outlook.com ([fe80::e332:554a:7:7135]) by OS3PR01MB8460.jpnprd01.prod.outlook.com ([fe80::e332:554a:7:7135%5]) with mapi id 15.20.6111.019; Mon, 20 Feb 2023 11:03:20 +0000 From: DLG Adam Ward To: Daniel Lezcano , "rafael@kernel.org" CC: "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Zhang Rui , Len Brown , Damien Le Moal , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Jean Delvare , Guenter Roeck , Jonathan Cameron , Lars-Peter Clausen , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Dmitry Torokhov , Raju Rangoju , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Ido Schimmel , Petr Machata , Gregory Greenman , Kalle Valo , Sebastian Reichel , Liam Girdwood , Mark Brown , Miquel Raynal , Amit Kucheria , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , Markus Mayer , Support Opensource , Andy Gross , Bjorn Andersson , Konrad Dybcio , Thara Gopinath , =?iso-8859-1?Q?Niklas_S=F6derlund?= , Heiko Stuebner , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Alim Akhtar , Orson Zhai , Baolin Wang , Chunyan Zhang , Vasily Khoruzhick , Yangtao Li , Thierry Reding , Jonathan Hunter , Talel Shenhar , Eduardo Valentin , Keerthy , Kunihiko Hayashi , Masami Hiramatsu , Matthias Brugger , AngeloGioacchino Del Regno , Stefan Wahren , Neil Armstrong , ye xingchen , Zheng Yongjun , Tim Zimmermann , Yang Li , Srinivas Pandruvada , Ricardo Neri , Jiang Jian , Daniel Golle , Balsam CHIHI , Randy Dunlap , Mikko Perttunen , "open list:ACPI THERMAL DRIVER" , "open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers)" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "open list:HARDWARE MONITORING" , "open list:IIO SUBSYSTEM AND DRIVERS" , "open list:ARM/Allwinner sunXi SoC support" , "open list:INPUT (KEYBOARD, MOUSE, JOYSTICK, TOUCHSCREEN)..." , "open list:CXGB4 ETHERNET DRIVER (CXGB4)" , "open list:INTEL WIRELESS WIFI LINK (iwlwifi)" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "open list:ARM/QUALCOMM SUPPORT" , "open list:RENESAS R-CAR THERMAL DRIVERS" , "open list:ARM/Rockchip SoC support" , "open list:SAMSUNG THERMAL DRIVER" , "open list:TEGRA ARCHITECTURE SUPPORT" , "open list:TI BANDGAP AND THERMAL DRIVER" , "moderated list:ARM/Mediatek SoC support" Subject: RE: [PATCH v1 01/17] thermal/core: Add a thermal zone 'devdata' accessor Thread-Topic: [PATCH v1 01/17] thermal/core: Add a thermal zone 'devdata' accessor Thread-Index: AQHZRG/HAV0yCC5B/ky2ximBKy+xBK7Xm3sw Date: Mon, 20 Feb 2023 11:03:20 +0000 Message-ID: References: <20230219143657.241542-1-daniel.lezcano@linaro.org> <20230219143657.241542-2-daniel.lezcano@linaro.org> In-Reply-To: <20230219143657.241542-2-daniel.lezcano@linaro.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=dm.renesas.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: OS3PR01MB8460:EE_|TY3PR01MB11211:EE_ x-ms-office365-filtering-correlation-id: 788211f2-3989-4bbc-8f16-08db133213f2 x-ms-exchange-sharedmailbox-routingagent-processed: True x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uCfhYzWDGNTVnEr4JJ5QwHA0cMrhv5MRkoTXepdpb7OlukecvhDtDs3+E+e6wXIPBpfh5rIF2jaAilrwUPwaib0RIfIq9OitosooRHZk14w9QSjrM9VGw8zPXdcAXq7/KeVIrsVAVQPM1sk7BoJRpj32HJfRNU7joVNwonc/+rJluFDzKkhpFhZwHT0S48IoKd6+kgEsUiEiZJIrzVdu19CkmV+vE2v/2POmDHU5hnlwQSRGk53DgUYtWB9OhyJfvW0bR2kSyqTCbEGZXu0UkwQEOt16a3xouwYPKjJX1e2OkpHk1IOGyH0PRdiuEXJshU2q4B2KCU0pDNmNFOvOrM05YqB4Owj4I9w61sPJfg8YOgS/bnYix4o6frxPBXwVpevjdMeTklVZYBgfeujv0jG+XnBqqUq1c0n2Gi+8ruRDlDVtGEZ9pHiw7MV0BVw6Vn+brUqLYNuW+qAq/ekQTeXcSmzGIqHxtkqatOM/f43vTSvhtA2Hxkq5UhAuejZ0gProyRs9v8p9cRo8FplZVOR+tjHyR0xtORzi1v8ocQLlcwR+dzOec84FCRBp+rIqQeyjvMoRoPZot/PkC5hE/yq7Fojt1hn5ehIpgfwzqFlSoWrSIT+Yrxe3oSd2gBvDhCgLGwwIfEE8j8uJD6uPISpampODqPVokHr2DdTw970kzYgzN4DfhJf3obdns5xXIHu7mI4xzwPEuAVJp0mL9A== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS3PR01MB8460.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(366004)(376002)(396003)(346002)(39860400002)(136003)(451199018)(38100700002)(2906002)(9686003)(26005)(186003)(41300700001)(38070700005)(6506007)(4744005)(55236004)(122000001)(53546011)(66899018)(7366002)(7336002)(7416002)(5660300002)(7406005)(8936002)(52536014)(478600001)(33656002)(316002)(66946007)(76116006)(66556008)(86362001)(66446008)(8676002)(4326008)(64756008)(7696005)(66476007)(71200400001)(55016003)(83380400001)(110136005)(54906003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?1XbjwtegscZo7kGLcEprJGXg72vK7xBbWWtC/M5D/Z22wJfLEqDMQKZ1dS?= =?iso-8859-1?Q?qe8NCGBMX+oBIh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RTEinexJ0elB458J?= =?iso-8859-1?Q?dCqJDl8R55MpllB559aUvFsnHUChF7qynKa02MYjOwn5dA1v5ScHnfS2U/?= =?iso-8859-1?Q?2Bu7ArQnoBP5zRw6QRqZEEQ1XOEk+s8rnoJVXo/nrPMYoLy0XjmFucMFhl?= =?iso-8859-1?Q?NcJjMKu6Gkw67TGEJbqY+2JbYW/5I8m7BSjKwwhsW24oGtwW/DfXYMHI9b?= =?iso-8859-1?Q?/EHjdJpknMWiqjnqZIPPjh6DaBgdyJnNOgNikBUkVkoLxlNvFhgY1FWKrI?= =?iso-8859-1?Q?jFvBe6YhJDvXPnLkEYGhxk7eTtgP6GdBeGX2/CPn1/r8uqZ2ZYdyEcnIjk?= =?iso-8859-1?Q?GQVow9PKXpEvRuRd5Z8TMeoHX6tnF0ZwpdaLLNoh6GRuyKcI4+JMKdosyn?= =?iso-8859-1?Q?AYmTh9slFIMRc1mEFLlR8yxLlpmrSz4vAOZQYxqD+jDlbY/b/z3lFD6UhM?= =?iso-8859-1?Q?hd1kfHts4NtFbWtoXbY52sdza8Dw2x68MdxvsJD52GMiJ1y/qBRGjwP1Ex?= =?iso-8859-1?Q?AzEBm/0xQ+vCeZ/hdtKsAGhZHX1KWNuwLTt+Es9bboch9sYlDyyaKZwWLD?= =?iso-8859-1?Q?B8+rFRJNSr7TEbDgwnIjnpa9DJvrC2G6uce4slZMP/Y+CkAvj0g4y5W8aE?= =?iso-8859-1?Q?1R8md1xAMn3lP6Nr8WEjer07DvbPdZCvrTyEfU+mK3mxGilK6C5MahLq9b?= =?iso-8859-1?Q?4m7MYMjGuhyBWipldQxq45SeVYYjAY4IGYKRKQqeKJr8K6zQYi0UsdYQ?= =?iso-8859-1?Q?=3D=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: dm.renesas.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8460.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 788211f2-3989-4bbc-8f16-08db133213f2 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Feb 2023 11:03:20.6544 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: yqnfzFAFLehgsME97tmK83Bee4AKD5t8sGglI5q05BlRF9+r9+i0Eyfe6pUV0TKqKoQLCzWj5rUqe2Hgle2XehsKYWozDDi/o9UJULWK8XM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB11211 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/02/23 14:37, Daniel Lezcano wrote: >The thermal zone device structure is exposed to the different drivers and = obviously they access the internals while that should be restricted to the = core thermal code. > >In order to self-encapsulate the thermal core code, we need to prevent the= drivers accessing directly the thermal zone structure and provide accessor= functions to deal with. > >Provide an accessor to the 'devdata' structure and make use of it in the d= ifferent drivers. >No functional changes intended. > >Signed-off-by: Daniel Lezcano >--- =20 >drivers/thermal/da9062-thermal.c | 2 +- For da9062: Reviewed-by: Adam Ward