Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp274076lqb; Tue, 16 Apr 2024 15:46:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVizYgXHwnlZ34+aKhPUaXl/Kad9GTldDbbXvaw7U/9bHgT+ggp0d23PK5C/BctTeCsAEbcyLE0qlZwsuGwP1ePbnLZFFWZ+iHZJERXZQ== X-Google-Smtp-Source: AGHT+IEjF2laoNVXRZWCwkGC02kQzhS9xcKiYzI3XkuTmdbeAh5B1FvHYuBh9pjqqtQ5c2xfOjbT X-Received: by 2002:a17:902:ccd0:b0:1e7:f944:b000 with SMTP id z16-20020a170902ccd000b001e7f944b000mr2305111ple.24.1713307564594; Tue, 16 Apr 2024 15:46:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713307564; cv=pass; d=google.com; s=arc-20160816; b=ZScB8UPi74b65uiLs85lmaDQzBZDLjWopMVfPBz4PQpUVZWbtokJSWtytM0czjBreO aCrMUilmU4/IELmD6U/UdJG8Rq4gdqfMwN89yWkqnpTFxTrDoBkRLvaDVz/sA6ifLl00 Ar131KwEyoPEieQKyY9CJUi7pQrfmxjsmrGQD0wTWAVszvW3+CJSq41F9YXDgcCKPPWp ARw/4iFilIxt7pkOzrNb0r0L0kBpTW0aVIWK5D5nvq5WgtYwGK6qDuarPDhwbzNn3wzy GPlbTyoNo/kMgUL9zicSi1flwqOxhlL82Mg5IQaqnrL3b09TuYnTl0SQ5sYFI7SbWnYZ NaRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=1DAM7ahXd7SQRtOs2FSyPEW9HzmQhg/l7bpOIUxyW00=; fh=2bv/xZL9hrErGnkmaT+rl8zwlZ4Ox+95s4ADqgqcCGE=; b=peHqXOCJZJJxPcfbO+2vnCdJzMZqzA7Il1n9izTsCk6V/YK3Qa1UKDHhrbgX3eYzqL o+IeEqoAYqtnJ6FjdYxNoG+Byo33gcJiZXdSHQcKUJrFNz+kC+fS6aia7l65gogGr2F3 7G9mYzyjk+ClwEHIZAaj++vRWxFtO/A8Hli7Yt0Ebq2nbCnvy0pFKJaVFPaFRMnlPaOF sVVF/CPzhmXw8n/eq1kFL9CKbugPyXKIj6F14qiIlwZ1AyldQjZHs5VCDpjlIuxOfZ+B rIgkE9HKDNb13DpRq3OJ7kln/+5Sm1t2F9Bud6v1oMEra+wMs48sNhKEaoFD5BAKvdUN bXCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nXMju8nv; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-147703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147703-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v12-20020a170902f0cc00b001e27c36f0d5si10033478pla.549.2024.04.16.15.46.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 15:46:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nXMju8nv; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-147703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147703-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 33B92284D5A for ; Tue, 16 Apr 2024 22:46:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FDAA13AA3A; Tue, 16 Apr 2024 22:45:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nXMju8nv" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 182191386BF; Tue, 16 Apr 2024 22:45:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713307536; cv=none; b=aKjqxz7qOr0A+IF4F+l1HL2x4qDv8sEoMlJDwpGcAURcJekg8d7UK4zsInzDdrwbBXHsHlwFwUfOTiCteLjcDJqANT8wwFzga+evPsOTKyjnzmkbOD8srf+xbp+WoTZwOTW0tIza5EdIYml6MFnLJenh9FkT25XDUpfIrW5Lr7c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713307536; c=relaxed/simple; bh=FJrlk6QnL//BUemzFKki2Dq54faR6yE8vBjGpDaJcxs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=in/wN63XGxSgC97dj7uiBGwewVUXVhEesAS2qohJb2UgBuwVtkWQcCIcQ+82fYsUST62L6iaWNWQ4ReK+0UJWWak7rSBWYNajtWtrZJLhCu2GhenQL8rWdyvuORXRXLwfEf3A56RgCcjZfhNHefU+6BiiRAJJ/u2ryig/kRbFfE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nXMju8nv; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-516d6e23253so5512551e87.1; Tue, 16 Apr 2024 15:45:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713307532; x=1713912332; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1DAM7ahXd7SQRtOs2FSyPEW9HzmQhg/l7bpOIUxyW00=; b=nXMju8nvP9J64lhP8buQVxW6qqr8zZK0pPZsjET2tWHy75Ap4tnRlgPJZAeQv/POXn vzLbJGPbMcQTBMd/bU0qDbVk+mu6DezLS0vXIWEUfOhrTnuFlRCx2dHfC9LPCGiz0saE uDRLPeeEbQFPqklzmPRNf9e6Mo02JAWPeu1MZ5JxqWyK++R8HATHO5OifRFVN4KMMbmo vJoQsiQlU7e/d8a9pCjIFZCd/z9jsq60h/RpHbxgmlrSTfq3d26aVXMYlKxglb5ZE4Ri Cllw4bMTjdO8RQgMrqikyqcSNHSHasuz681AvxZSaqV4tyPVjiirvptpoZpKuNkeD/4B zRUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713307532; x=1713912332; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1DAM7ahXd7SQRtOs2FSyPEW9HzmQhg/l7bpOIUxyW00=; b=aLJCYVT+iHRTmtj9xcn87gH+QfNF6s6BW7XgYWmFkjP2dMzq22+IlVU86Pr0EmLvQ7 05Wil7BeNl956E6k8yfw3GRKASK/VfLkv6qvNB9cY0xBzi1662oxOEVgHVWIYL6OPqKh aSWKXF/cYdl1JdmRXIRIO/ID3AvgiXrmln9A8Q3gOamx5yurESqQ90XjHE1Y/J/WulPX YxVXxy+2X1Qlj3IxlYZcLQx0OhUHhUVsI95a2gWnNsKj1teKh99wDRzmtgzjTDXsZMTu NSLYosesU4PT8UfVnmmoTBTbPn+570IHaANcwPDgWR9v0Gx2ZQ6YHmocPiKxbFOi6hlO Gn0A== X-Forwarded-Encrypted: i=1; AJvYcCXKbnotw+G7hI2l/JPzJfze1c1mrCUHE0XFwRRAcThUwwKIsTgDN08tYWnnkDU/Rqre3Y/Q2W1rxpUmpw7zOgXfvhFINUhDFvjLwEAn X-Gm-Message-State: AOJu0YxMBgXWmtH4jr37TBgiK6Ab37j8vQJaty86x1g/b7u28m53OZLu 1+KepEhFBIY+KLZPzyefb+QHvkGg3bfZ+Yjsd9NacPISmYFcw1bI0FaBkbplaSo= X-Received: by 2002:ac2:48b7:0:b0:518:6d35:e4cc with SMTP id u23-20020ac248b7000000b005186d35e4ccmr10336742lfg.25.1713307531804; Tue, 16 Apr 2024 15:45:31 -0700 (PDT) Received: from localhost (95-24-153-47.broadband.corbina.ru. [95.24.153.47]) by smtp.gmail.com with ESMTPSA id n12-20020a19550c000000b00515d32e33a8sm1733241lfe.99.2024.04.16.15.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 15:45:31 -0700 (PDT) From: Mikhail Rudenko To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Sakari Ailus , Laurent Pinchart , Jacopo Mondi , Tommaso Merciai , Christophe JAILLET , Dave Stevenson , Mauro Carvalho Chehab , Mikhail Rudenko Subject: [PATCH v5 02/16] media: i2c: ov4689: Sort register definitions by address Date: Wed, 17 Apr 2024 01:45:10 +0300 Message-ID: <20240416224524.1511357-3-mike.rudenko@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240416224524.1511357-1-mike.rudenko@gmail.com> References: <20240416224524.1511357-1-mike.rudenko@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Put register defininitions in the order of increasing register address. Signed-off-by: Mikhail Rudenko Reviewed-by: Laurent Pinchart --- drivers/media/i2c/ov4689.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/media/i2c/ov4689.c b/drivers/media/i2c/ov4689.c index 9890189bcbd5..c4d4afd38906 100644 --- a/drivers/media/i2c/ov4689.c +++ b/drivers/media/i2c/ov4689.c @@ -19,15 +19,15 @@ #include #include -#define CHIP_ID 0x004688 -#define OV4689_REG_CHIP_ID 0x300a - #define OV4689_XVCLK_FREQ 24000000 #define OV4689_REG_CTRL_MODE 0x0100 #define OV4689_MODE_SW_STANDBY 0x0 #define OV4689_MODE_STREAMING BIT(0) +#define OV4689_REG_CHIP_ID 0x300a +#define CHIP_ID 0x004688 + #define OV4689_REG_EXPOSURE 0x3500 #define OV4689_EXPOSURE_MIN 4 #define OV4689_EXPOSURE_STEP 1 @@ -41,12 +41,12 @@ #define OV4689_GAIN_STEP 1 #define OV4689_GAIN_DEFAULT 0x80 +#define OV4689_REG_VTS 0x380e + #define OV4689_REG_TEST_PATTERN 0x5040 #define OV4689_TEST_PATTERN_ENABLE 0x80 #define OV4689_TEST_PATTERN_DISABLE 0x0 -#define OV4689_REG_VTS 0x380e - #define REG_NULL 0xFFFF #define OV4689_REG_VALUE_08BIT 1 -- 2.44.0