Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4384098ybb; Tue, 14 Apr 2020 06:19:18 -0700 (PDT) X-Google-Smtp-Source: APiQypIP39ahTPAbkRGDjpi422ssgss0Lwoc0Rm52MQhHiZhKfbsBKTJe6Xjx+PopLYV9MPi8Lo3 X-Received: by 2002:a50:cd89:: with SMTP id p9mr20375024edi.188.1586870358414; Tue, 14 Apr 2020 06:19:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586870358; cv=none; d=google.com; s=arc-20160816; b=fj+uaDc4wI3eRd7wiRWc8L7BixhZD009b0PNKNV64EOMdZJifqbM/+cMse8dfXGk0E oXw1RnA9cStRhBbQD/yZ4p/TENAth6CwwvgYpF2/LVpae/0zRYE0P6JrDQqkue/xAlXe Mhe8xEuG87jhXqUrj5doYci4vmmq2mzTJ+N5kZnGLmr6tC7GB5WHOhcHZeXmxDbulRHb 8m+OdXw7O5myif7e1HZVrcMllBEV9rx+BbSIyz4eV5H+KijEtfVlqxraR66vFp32hHCL E8U4Nf8b+i1NTwlhQIrsQgJ9+tJM6fCV7NhwzkPHuoG8UVwdVh9e8l+AYQxFNZ3uiFFR 4GJw== 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:mime-version :message-id:subject:reply-to:cc:from:to:dkim-signature:date; bh=rbra6vqOd3+0qys2zYRIijWqxNP8uT07e7frk2jM4G8=; b=iQDzEfPtbKpKW1AIkazNRE1jIUlE5f2ReXfUxFKGKxNxtKRZN+qxBrzC0ungfKK1VU tWiPefU+b02fhjh4vCwCPn6NiW7ExLOQsnLW9zFxueQL1ZSXo2K1YM2uiYutQdqIBYmf iw5Uqlm9WP7rTFPisytsja6sHkwWZp0z4Gu2x41ovsO0UtUjbtIHTtQgdj97NMjm8lw7 9v/vRUbaw0FEbCSqKiNKFh89tCq0IsY6n9qw2R4E0rpI8hOtlgUfImqUw+3qo7SCHsdC Vj7DbiO25sJeAgcbu8eknr3Y+aLFND0qF4AxsBDxRCn9GkfWEz8cjrTR92Dc6f9NM09g 5UHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@spuri.io header.s=protonmail header.b=MW3vL5s7; spf=pass (google.com: best guess record for 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 q12si8254617edc.252.2020.04.14.06.18.54; Tue, 14 Apr 2020 06:19:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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; dkim=pass header.i=@spuri.io header.s=protonmail header.b=MW3vL5s7; spf=pass (google.com: best guess record for 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 S1730865AbgDMPv5 (ORCPT + 99 others); Mon, 13 Apr 2020 11:51:57 -0400 Received: from mail1.protonmail.ch ([185.70.40.18]:22768 "EHLO mail1.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730923AbgDMPv4 (ORCPT ); Mon, 13 Apr 2020 11:51:56 -0400 Date: Mon, 13 Apr 2020 15:51:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spuri.io; s=protonmail; t=1586793113; bh=rbra6vqOd3+0qys2zYRIijWqxNP8uT07e7frk2jM4G8=; h=Date:To:From:Cc:Reply-To:Subject:From; b=MW3vL5s7Ri/9vo39Esj9Es1VQu2rb9sR5VfbgJ7db6SF6w8akaXktT4pwCZKPdTlE o5pZ775qU8FtneMProovZJbhR2d/NdscIy48OUlR9sP3+U8m0OCnQ2Z4B+nZn8itjD 9xRoLQSf4/CxtqX/3e0dj0zUSI6HPTMNf24yiWTU= To: dave.stevenson@raspberrypi.com From: Sameer Puri Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Sameer Puri Subject: [PATCH] media: i2c: imx219: remove redundant writes Message-ID: <20200413155134.250243-1-purisame@spuri.io> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These writes to 0x162, 0x163 already appear earlier in the struct for the 1920x1080 mode and do not need to be repeated. Signed-off-by: Sameer Puri --- drivers/media/i2c/imx219.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/i2c/imx219.c b/drivers/media/i2c/imx219.c index cb03bdec1f9c..53dafb7f5f2c 100644 --- a/drivers/media/i2c/imx219.c +++ b/drivers/media/i2c/imx219.c @@ -253,8 +253,6 @@ static const struct imx219_reg mode_1920_1080_regs[] = =3D { =09{0x4793, 0x10}, =09{0x4797, 0x0e}, =09{0x479b, 0x0e}, -=09{0x0162, 0x0d}, -=09{0x0163, 0x78}, }; =20 static const struct imx219_reg mode_1640_1232_regs[] =3D { base-commit: 8f3d9f354286745c751374f5f1fcafee6b3f3136 --=20 2.26.0