From nobody Sun Nov 24 18:41:47 2024 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.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 09BB51CACD9 for ; Mon, 4 Nov 2024 17:50:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730742640; cv=none; b=n8omSZ7FyHcLgNmz4Dtt6XtLDSdubqBZPrGhpB2y4+uhefKWjzj+xEkJLjZf2Wqz95PbaCT9dl6NBlrQQxDd68gWMb7rQx84Ak+1y8s6Oa12q3hJ54TmPIgPOIwSHpC5EHL81BhAqliQKnd0exNw6rZo4wgl3tu95QwpjasO+f4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730742640; c=relaxed/simple; bh=23ngUTksLpTkGw0aoSlNw3ryYZyvaCsuu0KwcDUyKbQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=f5d7wgcdrJkkvQtwAfLVYZ9NI7j4JgnPOGeXG/ar1DNIIDXr1YOKHZRO2xndRvXwditjP9MZuA024orYmi7PmVB6SlVQhy5oD/WiIEnVx5IpSSDK9nqAXipyj0ovo8SJjML68ahzKVJhrMq8YbMwtY/nwF822IWFmoANxV+e36k= 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=BzQ9ndBM; arc=none smtp.client-ip=209.85.128.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BzQ9ndBM" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-43155afca99so33657585e9.1 for ; Mon, 04 Nov 2024 09:50:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730742637; x=1731347437; 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=3bZW2vMqumbONmM6bkNUy1UefcqeQAO43C3ir03Pf+8=; b=BzQ9ndBMA91Ax5xAMyKb9ex8DGTuepbE4rqvN48vdikzEyPQZ1Ky1/Zr9zCPMQ0aPJ Q0CsB4EJgtn2hhyBoPPGGHpEXi9F2WOzFIdYW5RmZ5FA5c7+jsbll2gCCpqq0giax0M9 ZNH1Z98MHFeZ8Cj15VigahzEYb5yJ9s0DnOZ2WtXffHdqaeUWx1uNj2YwehrOgxXWT8c B/Ua3wuBf4JuzLaWo0h6RT9FPy33JNixGVUAmvPwaNVlxV5xtMwCsoG8HyQxMrWRUiAp DTQnaFL2U3nm+uyTdMhF652E6b9jKK6w9XrshYxbhIe5+71pAYZsgfo81E9cI4SGs3B4 E1Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730742637; x=1731347437; 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=3bZW2vMqumbONmM6bkNUy1UefcqeQAO43C3ir03Pf+8=; b=Jtn9bT/7+6tmvntron4msmGn3KdLHAW62+Jnj6++odDHVhTlL3gG4WofgOk1+blyy7 0S7VFx9jsb0dNs8qtIeLUaoklU76D1LrcxmdnPlrJCVpQRbQl6Hp4qOydxTb3bhfbedm 5oX5nm/rq7Ihm2k/LrIyYFBo3W7FHLd4zCNh3ElPn2mrEh25q+ncmTC7z4XeLhv85AQV pLFDdJsLdRWfSR0xWJKWScopcoiD6aO9Yv9AcCXGdcLsTeVN7zOnAtiXg4d1b8duHqpm bn6Fk7M2Sv/jSZEMKDHgj3fQdWzK5I2cRHikfPLRnZC9wc1ex+ngNnyUtqPmL974j2/a cvSQ== X-Forwarded-Encrypted: i=1; AJvYcCUHjmthoaX6PE0Ro88u7hc+xLtQo4fPZnGx8eqJ02+DICu7xWdMK1di8d+cnW9PTeZYbrDBttlNr2V7JTk=@vger.kernel.org X-Gm-Message-State: AOJu0YxG3I9DgqOBnMKYlTT5Gz/FPP+RTnkjbLZzhsL0wsfEVpKok4un cZYqYyfGWweDQX6yVTgiDFx8xUUXc6OWB7CGlwrJOxBdxe6qJvUO X-Google-Smtp-Source: AGHT+IED9koMHdtoigV1IUNLC0Lf8hQjcXzlL4YR2SQSl38kHBY6wovIRGamZetZgT8dKXARQicxow== X-Received: by 2002:a05:6000:178b:b0:37c:c9bc:1be6 with SMTP id ffacd0b85a97d-381c79bb817mr9913699f8f.16.1730742637254; Mon, 04 Nov 2024 09:50:37 -0800 (PST) Received: from localhost.localdomain (82-64-73-52.subs.proxad.net. [82.64.73.52]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381c10b7f80sm13839821f8f.20.2024.11.04.09.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2024 09:50:36 -0800 (PST) From: Dave Penkler To: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: skhan@linuxfoundation.org, arnd@arndb.de, dan.carpenter@linaro.org, Dave Penkler Subject: [PATCH v3 11/12] staging: gpib: Re-order the lookup tables Date: Mon, 4 Nov 2024 18:50:12 +0100 Message-ID: <20241104175014.12317-12-dpenkler@gmail.com> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241104175014.12317-1-dpenkler@gmail.com> References: <20241104175014.12317-1-dpenkler@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: quoted-printable Content-Type: text/plain; charset="utf-8" Re-order the tables so that the bcm27xx table is used first as these devices are more popular and numerous than the older ones. This is slightly more efficient for the later pi3 and subsequent models but should not be noticable in practice for all users. Signed-off-by: Dave Penkler --- drivers/staging/gpib/gpio/gpib_bitbang.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/gpib/gpio/gpib_bitbang.c b/drivers/staging/gpi= b/gpio/gpib_bitbang.c index 78032af5061c..a2d562cbd65b 100644 --- a/drivers/staging/gpib/gpio/gpib_bitbang.c +++ b/drivers/staging/gpib/gpio/gpib_bitbang.c @@ -202,7 +202,7 @@ int gpios_vector[] =3D { =20 /* Lookup table for general GPIOs */ =20 -static struct gpiod_lookup_table gpib_gpio_table_0 =3D { +static struct gpiod_lookup_table gpib_gpio_table_1 =3D { // for bcm2835/6 .dev_id =3D "", // device id of board device .table =3D { @@ -232,7 +232,7 @@ static struct gpiod_lookup_table gpib_gpio_table_0 =3D { }, }; =20 -static struct gpiod_lookup_table gpib_gpio_table_2 =3D { +static struct gpiod_lookup_table gpib_gpio_table_0 =3D { .dev_id =3D "", // device id of board device .table =3D { // for bcm27xx based pis (b b+ 2b 3b 3b+ 4 5) @@ -264,7 +264,7 @@ static struct gpiod_lookup_table gpib_gpio_table_2 =3D { =20 static struct gpiod_lookup_table *lookup_tables[] =3D { &gpib_gpio_table_0, - &gpib_gpio_table_2, + &gpib_gpio_table_1, 0 }; =20 --=20 2.46.2