Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3021953pxb; Sun, 8 Nov 2020 23:37:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJybijVcRoTBS3V0MfMvgFhLee3fzZkQy1JCKT+lrKVgyqaR2NfNTFMZOyccK6ZKLAO7uRS6 X-Received: by 2002:aa7:d146:: with SMTP id r6mr13641760edo.268.1604907420930; Sun, 08 Nov 2020 23:37:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604907420; cv=none; d=google.com; s=arc-20160816; b=dGNwsS0liOqsLym8XRryAqBZsH1BYESsCbdO4x1SdIqbgb0sYIXWM3t9vMrKwpJ+9z Nej9tw37uwM4BfRYE3+hR4xrMDVdHnc6XezQ7K4lV6RLypVOTIJ/iCrY9kOdYz+Gt3BB rLbjrozuTZ409oLGQ0/3T36zcd0wINqCLPD5vneMHDeTcQgDT0LtZpyZyi0VA55EI97h vVbydyrmgRw3SutivttdJ1aER6VEQkygxJ7ThYKoKhsFWQkpfGdyZvHNuV+pSHbKx6Nc YRWzZyED0wxDQIhI7geb3qk2BNrK2NVIBLjxlZ/EK4INreOOuJeKi4NTF4snnsAY8+D8 YnqA== 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; bh=zMqC9hZrgkgrYdquf+/E3iGGQuurrbuM2gSR0UCpEnc=; b=eCyWQDEKn8GkA+4PytPbdIqNdJGxByBjuqGxCbMvxpmxf77MfALuDAKeh4jX53KRV0 e4VkaOEKrBpbUmG/r16BwkN2zOonSsMwHirsxur+IWCO+qMmPlhVW6PGXMDYZEODvXwx pZtLAqaRkD+6xuIC78jOAUiIm022NOFzTDhX7ZN2r4N3r0fIBUmWLaUh6fyUsuRPMZP1 Zc+Ltyl/kHN+R0YDmDx21JVBP/YMP1mFUw0MEeqh66cyNGFIGDuzHHuMdaVKPwcC9pOx D45pFjtdkvahKIn2qwGk3MDSlgrO9I71RHaAW0u3Gka6u3KlrLeGzFFAnSPnissIoi+7 l5RQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p13si6638540edy.436.2020.11.08.23.36.37; Sun, 08 Nov 2020 23:37:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729585AbgKIHdA (ORCPT + 99 others); Mon, 9 Nov 2020 02:33:00 -0500 Received: from asavdk4.altibox.net ([109.247.116.15]:52368 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728038AbgKIHdA (ORCPT ); Mon, 9 Nov 2020 02:33:00 -0500 Received: from ravnborg.org (unknown [188.228.123.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 973718053B; Mon, 9 Nov 2020 08:32:57 +0100 (CET) Date: Mon, 9 Nov 2020 08:32:56 +0100 From: Sam Ravnborg To: Rikard Falkeborn Cc: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH] drm/msm: dsi: Constify dsi_host_ops Message-ID: <20201109073256.GD1715181@ravnborg.org> References: <20201108223738.16535-1-rikard.falkeborn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201108223738.16535-1-rikard.falkeborn@gmail.com> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=VafZwmh9 c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=kj9zAlcOel0A:10 a=pGLkceISAAAA:8 a=7gkXJVJtAAAA:8 a=3_kn_H4_jy6CR71Q0pAA:9 a=CjuIK1q_8ugA:10 a=E9Po1WZjFZOl8hwRPBS3:22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 08, 2020 at 11:37:38PM +0100, Rikard Falkeborn wrote: > The only usage of dsi_host_ops is to assign its address to the ops field > in the mipi_dsi_host struct, which is a const pointer. Make it const to > allow the compiler to put it in read-only memory. > > Signed-off-by: Rikard Falkeborn Reviewed-by: Sam Ravnborg With this patch all struct mipi_dsi_host_ops are const - good. I expect the msm folks to pick it up. Sam