Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp730718imd; Thu, 1 Nov 2018 04:50:47 -0700 (PDT) X-Google-Smtp-Source: AJdET5f/N5ZXUHrdD+c5PN1v5aEzsDsAtBvVS1lEc4mGdnzenTm+NNgVW2tNXc2ZeKPGrvqFbwKJ X-Received: by 2002:a62:4301:: with SMTP id q1-v6mr7241225pfa.163.1541073047210; Thu, 01 Nov 2018 04:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541073047; cv=none; d=google.com; s=arc-20160816; b=WISozZvJkoJyO42u3wPdL6L75XdGmTfkdrM1vNiAf3w2bts+r3mKJlzhddje1re7to C4bwGd5C5zAM63E3v1YluVHfJ1hMf+MSt+XaHwNlgvD+9tiCS+KP5++Jpw2TCpvisYUc oNlP/WQco+oiAZ41GeXxL9igPOY0Pl7pyqTYCsIXw8i7RyvUorgIQCfzHxrpfCFVNLze Nh3sAHu6KTpKGEpOKpphxedw9xonT6MJ2tJPVFGnkfT5Zhn5eSJ9Lp4NC4gxhYd8q4z9 G9oYcVfjJUWbXnY734aRxkifjT5rHOWCkUcrkAuHa7MGNI8HnhSBfP1iJltRf6tXjZ9Q Ybfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=vRbVLtF763nkEswVfUpwoonMxZ00AsPDVVmtDcK+2mo=; b=QlAbrrXRzQ4NcvagivYp6t+CL2yFQFob1it0tvl7LickfvtgYrjDUYvKK134DCsiqS EYLZuop61P2WSB0FC5RRedMELQr1+VA3T51cvYDvG/sK2vS0mwPw+1F+mb1P3Dg0QlZ/ k4rKqpzI/6WO2sxiThVSqIYRBNYnl+7MRprWyNnen8Fv/qUJNQFpoaSDqKR/pBXUDVzq wywaUKUVYeXI4d44NGkM6T1zaXLkcbdZGvqMEoL52YpGa2E9mcbND0iul8IpT200pXF4 X2uBb5KrO4U3L4WSHPViM30abow+4K738azTFKBQBJi7px9omJ2aogom7oscz3h0s1wL lOyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 101-v6si30953608ple.326.2018.11.01.04.50.28; Thu, 01 Nov 2018 04:50:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728308AbeKAUwk (ORCPT + 99 others); Thu, 1 Nov 2018 16:52:40 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:56366 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728085AbeKAUwk (ORCPT ); Thu, 1 Nov 2018 16:52:40 -0400 Received: from [IPv6:2804:431:9718:2bff:decf:69f2:c4e6:79a6] (unknown [IPv6:2804:431:9718:2bff:decf:69f2:c4e6:79a6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: koike) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 7E887276E38; Thu, 1 Nov 2018 11:49:52 +0000 (GMT) Subject: Re: [PATCH 2/2] media: vimc: constify structures stored in fields of v4l2_subdev_ops structure To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <1540644545-26184-1-git-send-email-Julia.Lawall@lip6.fr> <1540644545-26184-3-git-send-email-Julia.Lawall@lip6.fr> From: Helen Koike Openpgp: preference=signencrypt Autocrypt: addr=helen.koike@collabora.com; keydata= xsFNBFmOMD4BEADb2nC8Oeyvklh+ataw2u/3mrl+hIHL4WSWtii4VxCapl9+zILuxFDrxw1p XgF3cfx7g9taWBrmLE9VEPwJA6MxaVnQuDL3GXxTxO/gqnOFgT3jT+skAt6qMvoWnhgurMGH wRaA3dO4cFrDlLsZIdDywTYcy7V2bou81ItR5Ed6c5UVX7uTTzeiD/tUi8oIf0XN4takyFuV Rf09nOhi24bn9fFN5xWHJooFaFf/k2Y+5UTkofANUp8nn4jhBUrIr6glOtmE0VT4pZMMLT63 hyRB+/s7b1zkOofUGW5LxUg+wqJXZcOAvjocqSq3VVHcgyxdm+Nv0g9Hdqo8bQHC2KBK86VK vB+R7tfv7NxVhG1sTW3CQ4gZb0ZugIWS32Mnr+V+0pxci7QpV3jrtVp5W2GA5HlXkOyC6C7H Ao7YhogtvFehnlUdG8NrkC3HhCTF8+nb08yGMVI4mMZ9v/KoIXKC6vT0Ykz434ed9Oc9pDow VUqaKi3ey96QczfE4NI029bmtCY4b5fucaB/aVqWYRH98Jh8oIQVwbt+pY7cL5PxS7dQ/Zuz 6yheqDsUGLev1O3E4R8RZ8jPcfCermL0txvoXXIA56t4ZjuHVcWEe2ERhLHFGq5Zw7KC6u12 kJoiZ6WDBYo4Dp+Gd7a81/WsA33Po0j3tk/8BWoiJCrjXzhtRwARAQABzR5IZWxlbiBLb2lr ZSA8aGVsZW5Aa29pa2Vjby5kZT7CwZcEEwEKAEECGwEFCQLEsxQFCwkIBwMFFQoJCAsFFgID AQACHgECF4AWIQSofQA6zrItXEgHWTzAfqwo9yFiXQUCWw2ZAAIZAQAKCRDAfqwo9yFiXajh D/9npW1VeySvAQmnmN4syxEbn+Ea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2it6O5XXFZ2yc3Jzw4A96hcF/1EghZ9BWZuFVcGnYMA+NXr+QgkS aXsw0l8S+qNX3MqxYX0AWWyoNZkMLJR2pH3pqFNIPfilHBvpr0f338auN6jAppov3kMhVlML pJO8M0vqSnKziw57YAyZAa/YwxwkHdpgvMfx/WwRD1LRQxfv/oKJ8Qbomh0bpj9b+UujVW8P F4MD67guCrqrGWSynwzvwWNybEVWV/hykKLa5xtnG6uGUGSO1lnwxUAR17eGWqNwGXYCHpAP zboVPGxw4aUcR80AEQEAAcLBfAQYAQoAJhYhBKh9ADrOsi1cSAdZPMB+rCj3IWJdBQJZjjDJ AhsMBQkCxLJmAAoJEMB+rCj3IWJdY34QAMVy70677f9vXJsYVndP1xmnMYqnI5CEViQ3GP9W k8I2q8nUN3NHyjWe5Ro/UKlj03REymVdtSq7xBRAINQmfgVELvOBEJY6cO8JAujPl4EiJ0kL Y7D0+WfRrMvs/pR9jG7h3e3oG080ezRIkh9amGi1rj/uG39vpBc5avNpvOqqdwyCIyAQuG/Z 00CcD92WMQH3LmZkHJ0A5amZmVp/2NhWFIXnzMGCG+pnenYkYTs+nPwpEeF9aURlT3RQ6MEX te5bno0pQAZmJGlfxzPeId4BXGIlyCBGa8AYVcAH4byD/Lj1CWMuF/n+PQOloCMTUQsWuHJG WAFfICCspjVwzVDZMr3W3dKesrufYdXM0yVlXc39Zvx2sI94tMPaaFGvk758TQohg28OlPFD AxxgkCTrLa8OeJxNJFAz4cmmCWiZbm3SSYLzVFkNozQujL8c3y2U5yM3Tq7RmU9Djxh4s10p OoTFbIyky1af/kDLOBTNMXSNJ95+CDyH4g6rHhYJcjUribIgChGr7eLiSdQCpoyjcOe6n7ua NDLkOLQPocgjJb/AE46aMq67SVffqOTtLZZNPrSKnw/RVt7kbpRrcz5a45oX1x2kwYBBa//G cNC+diAifR6fnbn0lFc5oop99E0SCa0F4V/PYh6myRcqYH8huntTFLvBSYnG/tBYAeu1 Message-ID: <317df861-530f-7700-7098-3a91855363a9@collabora.com> Date: Thu, 1 Nov 2018 08:49:50 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <1540644545-26184-3-git-send-email-Julia.Lawall@lip6.fr> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Julia, Thanks, I had missed that one. On 10/27/18 10:49 AM, Julia Lawall wrote: > The fields of a v4l2_subdev_ops structure are all const, so the > structures that are stored there and are not used elsewhere can be > const as well. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall Acked-by: Helen Koike > > --- > drivers/media/platform/vimc/vimc-sensor.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/vimc/vimc-sensor.c b/drivers/media/platform/vimc/vimc-sensor.c > index edf4c85ae63d..32ca9c6172b1 100644 > --- a/drivers/media/platform/vimc/vimc-sensor.c > +++ b/drivers/media/platform/vimc/vimc-sensor.c > @@ -286,7 +286,7 @@ static int vimc_sen_s_stream(struct v4l2_subdev *sd, int enable) > return 0; > } > > -static struct v4l2_subdev_core_ops vimc_sen_core_ops = { > +static const struct v4l2_subdev_core_ops vimc_sen_core_ops = { > .log_status = v4l2_ctrl_subdev_log_status, > .subscribe_event = v4l2_ctrl_subdev_subscribe_event, > .unsubscribe_event = v4l2_event_subdev_unsubscribe, >