From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F3A5C433E2 for ; Mon, 31 Aug 2020 09:06:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 19C5320936 for ; Mon, 31 Aug 2020 09:06:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598864819; bh=1Qz1M9vaoARg9GtUW4ovk1F2f4s3/6BPUuzEaqduOXc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=V5JiNNigFhBc3nKHYvo5iztsDDpcrQLYFql1HXW3vobzaGVPsZ9/wmy619N3Gcqjp z+1BkhZCTqTk47zNKVhc3yeWM8bfqQpfPiFQtjJCLhK5D6AIjev8KPS0c2HTYIm481 7LDyTgIHFsvY2wOm6jdNqyDIDcDRa3zE4K9Kkq+Y= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727918AbgHaJG5 (ORCPT ); Mon, 31 Aug 2020 05:06:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:41594 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726244AbgHaJG4 (ORCPT ); Mon, 31 Aug 2020 05:06:56 -0400 Received: from localhost (unknown [122.171.38.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 44968208CA; Mon, 31 Aug 2020 09:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598864816; bh=1Qz1M9vaoARg9GtUW4ovk1F2f4s3/6BPUuzEaqduOXc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0jTD3R1lBvSfSxPQgT9W8buKR6N1GnQIJ8/BTEbtQYmZr50oYl1xw16dsiwgfcl1e KDwjWx/mDwezUpYNuxO/4Wt5l3vGvBhOYGADoVHSEyFGRRHvHxK8AeJhRGq81bLTh3 tEeAeWgWGdDiLs+A2JrPcoySoIKg7e8IS95c65GY= Date: Mon, 31 Aug 2020 14:36:52 +0530 From: Vinod Koul To: Rikard Falkeborn Cc: Kishon Vijay Abraham I , linux-kernel@vger.kernel.org, Peter Chen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Yu Chen , Binghui Wang , Martin Blumenstingl , Alim Akhtar , Seungwon Jeon , Andy Gross , Bjorn Andersson , linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 0/8] drivers: phy: Constify static phy_ops structs Message-ID: <20200831090652.GK2639@vkoul-mobl> References: <20200823220025.17588-1-rikard.falkeborn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200823220025.17588-1-rikard.falkeborn@gmail.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On 24-08-20, 00:00, Rikard Falkeborn wrote: > This series constifies all static phy_ops structs in drivers/phy. > Typically the only usage is to pass the address of it to devm_phy_create() > which takes a const pointer. The lone exception is in > drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c where the address of the > structs is assigned to the data-field in of_device_id, which is a const > void pointer. > > Making the structs const allows the compiler to put them in read-only > memory. > > The patches are all independent of each other, and have been > compile-tested only. Applied all, thanks -- ~Vinod