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 6C4D3C433EF for ; Wed, 1 Dec 2021 15:15:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350789AbhLAPSf (ORCPT ); Wed, 1 Dec 2021 10:18:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344328AbhLAPQh (ORCPT ); Wed, 1 Dec 2021 10:16:37 -0500 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AD05C061574 for ; Wed, 1 Dec 2021 07:13:16 -0800 (PST) Received: by mail-ot1-x32b.google.com with SMTP id r10-20020a056830080a00b0055c8fd2cebdso35537420ots.6 for ; Wed, 01 Dec 2021 07:13:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zHnyn0V4D1cDh530N0PDN6SxecckzjKWiElhDEIypxc=; b=eS5bLwRe01fg0ZrcHBic15idl3vRr5TaSzVk+R7q2FO8U/Ut8YWpN8HNTb/7daHq1z DegJAHrRJFJ5DvdIg5We/MpVCdYKlA50BH1FL4vpeNxXlN/FyHUoW9hogQWbGyFX7ZW+ UKpoTUj96gyLsw8ToAl+9DzJY1AzW/QV5lKo2kiU5H13o00Yeh9s4mADfhJv6rthPMps GV3LFrHTt2YvGtmCbvoKm7WtfwAtT1I+EoEAzba6LkGOntmV38Mhu63VO1SLhMHcuq4B jnva00nTZnhCAD0n8A2VdE6nnhuXTKekmXjbuH/8j9jBnxyE6uKN3O3FA7qYXT85U5Nh UF4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zHnyn0V4D1cDh530N0PDN6SxecckzjKWiElhDEIypxc=; b=RuObbvW9zMKbILwfqXSY1ug426zd8oaAB3qOQlvE7/tvNpyjAEe89t+cH3e2pAmdwG BSRYeRUlsVBFsjzm8c1ItMyDxMwj7K5P0pBBS07NJsqBPFwKnfy4B+DzEN10rlioRPdF C8hRqSispJjSoSLCrqBwfhBhbhj7R9gpR5HKtSN0y0eBkmfgJVOiYIVdvtNHKXsvZxnM /ImnIvem87Li6KIfYSjNKVLnflZjDPoX1eGjIU19QXMCMTuLtSDs+YMsf/aWwM2Nf0BP yNpaKJQHAX2eTacFZ799Re7fN75G3BuMRpouUc1vnLzXJxA0ECwj4qBmeUYwzGFqyMON nyJg== X-Gm-Message-State: AOAM532MthsHuaZ6BxjLdYdmo/vuQFKBdH6HP3Yj8xcTNmvl80J0JtKz H2sZqvckjw45DmTtz8+o+MI4uQ== X-Google-Smtp-Source: ABdhPJy7hptbKYqcIM1z69aEtHiMKTqkYVcs56AAUIiUTpc+AEu9/T7j9qv/iQZMtM8X/j+/vzm3Ig== X-Received: by 2002:a9d:74cd:: with SMTP id a13mr6512786otl.71.1638371595672; Wed, 01 Dec 2021 07:13:15 -0800 (PST) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id be12sm33933oib.50.2021.12.01.07.13.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 07:13:15 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Rikard Falkeborn Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: (subset) [PATCH] soc: qcom: aoss: constify static struct thermal_cooling_device_ops Date: Wed, 1 Dec 2021 09:13:02 -0600 Message-Id: <163837153033.1905338.15967895794638876580.b4-ty@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211128210317.25504-1-rikard.falkeborn@gmail.com> References: <20211128210317.25504-1-rikard.falkeborn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 28 Nov 2021 22:03:17 +0100, Rikard Falkeborn wrote: > The only usage of qmp_cooling_device_ops is to pass its address to > devm_thermal_of_cooling_device_register() which takes a pointer to const > struct thermal_cooling_device_ops as argument. Make it const to allow > the compiler to put it in read-only memory. > > Applied, thanks! [1/1] soc: qcom: aoss: constify static struct thermal_cooling_device_ops commit: f5c3902d854744b42604359f68b42426185ed7a5 Best regards, -- Bjorn Andersson