From nobody Thu Feb 12 17:30:26 2026 Received: from mail-oo1-f54.google.com (mail-oo1-f54.google.com [209.85.161.54]) (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 B304C1E492 for ; Sun, 9 Jun 2024 20:06:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717963586; cv=none; b=tdikJVlH0QOo6ctNy3maRbA5AFFvRygvKrsAgz0YrfZAZV3EgeN+3UkQs+tOfOMBLgs3NFuvT0Gx/gr/x6deBFVnitD63tl1YHtV+DeAJ7uctP2vlVZmJRsRd6WXaiGeme5jpdRU/8Axebp4x7O2A3qVBOmWRNa6rXhF+DmW1fQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717963586; c=relaxed/simple; bh=Y2g3hBH20Ez6tjr+gS+RmV88OyRJw9ykCZUclisL2Gw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Ek29BWBPclhUU0HjBcCDWikC/+kntaSgO/Uy0R7fiUyh+lPs/nY+5HTPqqFkXfVhQzMjHH3r5xV7iaKBVFNKoSdroN8kCGC+kpjAcEMLTsidlNdjRDd1w5Cv7Ci89DcpXUO3HzrU3zgpwS+UUIhFNIBlt2yCNy02gRUvATTIwAY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=CYdW4E5z; arc=none smtp.client-ip=209.85.161.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="CYdW4E5z" Received: by mail-oo1-f54.google.com with SMTP id 006d021491bc7-5b53bb4bebaso2002825eaf.0 for ; Sun, 09 Jun 2024 13:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1717963584; x=1718568384; 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=6zH1+NlAL7sGBrxSanA/FtA/g7DCFzhSaqjwGlIqeYk=; b=CYdW4E5zxWh5IWcXejzYoEslcvehPyPu5TRnvnKy2LuGE6XhQFy2s62bOjtxRoQRoe bWkYlHamm1eLwTb/YnXWn9Cb/GOwagOkO+rp7DaEG3l/NfbBCqck6r2T1CvuIIK1oSa7 nxW9DKzma1i19RDENg3xJngRmnmC6ASxLKrC5/VBEQ3CEgit4RKsyhS8YNgqcJCOzyRQ mQiz4f+hX2YtHRotGqhKshiux+yDbXmImxDVZpJR4N1wQ5wGoPv7ctRGLXWu6ujY995a Ee+JiecsSNE73od4mPgGCLW43zYJGnKXQdAXgsetCY1G48N9C2ubmc+5Bzbdww3QOlo+ E5JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717963584; x=1718568384; 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=6zH1+NlAL7sGBrxSanA/FtA/g7DCFzhSaqjwGlIqeYk=; b=gE00eCYDiujVeJ6Qsiy2mJsKxqjAumXDrvPwRQFuArb8smEKgkd8NKTfYkPudSyag6 4d38lIeFoyKPhRDpe4RJgssd8K2/ZgQD1lXuLp5suKhapgwEw1YT4mFA+yQRqrhOiPuA XIM2Y51HhhVw1DDeWwuUz9jAxHcl+ZIqha6yusL/lh1V4jyQyFoI7abE27Mf58YmIFmg y/l4w8W1VQllZeArSKraOrRwsNDpP/f4IsB+mbqQKJrB8QrJnNSdDftpL3eP8pecE3T0 vmRpI5iceg1AtBRcLcWZORO4TZcxHpd1PTEsaJvSpvyCXJoQe8XlIrtanvGEXX/AgVh6 U/bQ== X-Forwarded-Encrypted: i=1; AJvYcCVq3YY7ihhsY0oGxQYWavO6plz6hj3UOwOKHbaYLCn0UrgedUf9R3bChX/pwMe9BVLseUVvl1g8X4SUf2sMB5yTahUOQQhil0yZso3Q X-Gm-Message-State: AOJu0YzhlE6+4P19mFckXC00oAU1ER83VlqDGaZN1WG/sbCs7HA3bD6g G0V12OjG+cziqGtRWiRs3KHv3o51nAMYdJPwbHbYy6vOFllkIb1mWrLaUBvqBhI= X-Google-Smtp-Source: AGHT+IEXyblMhCU92LHpLi9n5C30rLt+Oo3AAw9gr5DqMdj5QvfaoFkMH+K9Ls0kXQ5UXrqpIjKi2Q== X-Received: by 2002:a05:6820:1691:b0:5b9:f2f4:6a95 with SMTP id 006d021491bc7-5baae76ba19mr7502787eaf.5.1717963583757; Sun, 09 Jun 2024 13:06:23 -0700 (PDT) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5ba977e121bsm1413278eaf.28.2024.06.09.13.06.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 13:06:23 -0700 (PDT) From: David Lechner To: William Breathitt Gray Cc: David Lechner , Judith Mendez , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] counter: ti-eqep: remove unused struct member Date: Sun, 9 Jun 2024 15:06:15 -0500 Message-ID: <20240609-ti-eqep-cleanup-v1-1-9d67939c763a@baylibre.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240609-ti-eqep-cleanup-v1-0-9d67939c763a@baylibre.com> References: <20240609-ti-eqep-cleanup-v1-0-9d67939c763a@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.12.4 Content-Transfer-Encoding: quoted-printable Since commit 8817c2d03a85 ("counter: ti-eqep: Convert to counter_priv() wrapper") the counter field in struct ti_eqep_cnt is not used anymore. Remove it. Signed-off-by: David Lechner Reviewed-by: Judith Mendez --- drivers/counter/ti-eqep.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/counter/ti-eqep.c b/drivers/counter/ti-eqep.c index 072b11fd6b32..30c35b6c6050 100644 --- a/drivers/counter/ti-eqep.c +++ b/drivers/counter/ti-eqep.c @@ -82,7 +82,6 @@ enum ti_eqep_count_func { }; =20 struct ti_eqep_cnt { - struct counter_device counter; struct regmap *regmap32; struct regmap *regmap16; }; --=20 2.45.2 From nobody Thu Feb 12 17:30:26 2026 Received: from mail-oo1-f52.google.com (mail-oo1-f52.google.com [209.85.161.52]) (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 8F0BE43AC4 for ; Sun, 9 Jun 2024 20:06:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717963587; cv=none; b=o0a5EStuHAZfW2MvgbaTWPwJ3rN+kseFee1Fc+32QChx2sYYGFmidhN8uO27fNVo7/Q3DVjvfUZghydlxQuBdh8rNMCz/aKIGzbUthwt/U0QR5fhOF6emtkYOuixBBIBPdWJfvvqJ3QtfZJv84rxvHJqtnBnmFfQt6fKn33ibmY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717963587; c=relaxed/simple; bh=OQ8LIfPXu3hLpWk0qkAUgzkjoCV+/oOpWmGnaf7E7Qg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IIFixqTocXGUl/aFyGE8t+YvP30BpelFlfZIjvM1XgTPBVd3InF0TIjmzQe6Rg4crTfj4CoZgnAf8ZEBS6Ov5WwiWTFXRueHgALc6SqtlkIo3w2ELZoHereqVvhJyEASAxWWsNO5kGqlgwdmnEewQp3nD3frZ4EEF4g80o7mNsc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=HqZsCIor; arc=none smtp.client-ip=209.85.161.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="HqZsCIor" Received: by mail-oo1-f52.google.com with SMTP id 006d021491bc7-5b2e93fddafso1727748eaf.0 for ; Sun, 09 Jun 2024 13:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1717963585; x=1718568385; 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=oYKfigbf7VqwLqv7HhequLfARQ4HkFaCIDWgcDYu/E0=; b=HqZsCIorJSHZPBcperrXtXGBWuE5zcItFcIVv75hX2mX7RI7J6CBmzbBT3LxDTaIws 9cCLU9M9TOuwS+BV3ClUJ+uYytaBn9lmddcuH6PabcyKAL54c5E19BVgzxGRDscDKdEd XTHWW1EjSSfwOfiHU1Y2iQGFLANNtklEUgHR3jAN+dWZFwzbnp0/olL8EZSluEf2YjnC F0Fd4BQPAqnpofSVorYa+5b5NVDbCLbmJGknjC4HLOhB/2jrE2cE9kj6Dq3qhnKGQrb4 Q7P8eppPIkV/e/3d0ernZ7CW+QU88pm+WmJWARXcQHIs7RxhPv68q+4V7glPsthHshGF 6Vvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717963585; x=1718568385; 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=oYKfigbf7VqwLqv7HhequLfARQ4HkFaCIDWgcDYu/E0=; b=TtV8Bag8DpoqcgKx81krxRSSyzszjp8YuhPVQDrxrya8gg0U4PUC+dMsy5fpnuoYrI ozEqc1faUe9VE8nLLLusQkNj9IIPmUyHr60TtOQ7zLciUpqKs4wzxWWFNlnWE/Xwvp8r TCypvmlHE5vwDK+0JS3/Z3Luxg8lTFDBKeWGhiqZy5RW9t7lb1jvBciukWfONeKwrOvT ZXhj7Omkf7QNir6lHE9dgFWft7sKRsy04XblM9iZmzvj7xNIP3/OTrpxflugRgVFq1pN z768rIHcLvMbuS9QXIJRB/skMQ1Q4T8/6hPsBVOHUSW3kC/4xayrpbq+9amtKFGI25s7 1cWA== X-Forwarded-Encrypted: i=1; AJvYcCWWu/LDKEe0DKV7Qtxamkb+2lFf5cNs4hdOUnDPaEKSiBlO2i0q8dZMQ5b/hLV6QmK8CoWn4FfEM+j7fSErXz7NS031bEO0ip6y9twu X-Gm-Message-State: AOJu0Yw4zEKH91eJdlgYKjNiNqKgQySTpYSAzJMVUUCkMBicH+KutNr9 rqi213saJ/5IpjYpzVb7a35vLXWsdw2Gr7R0x3uAXNY0gIUKEOiuXnsUP6jqBNM= X-Google-Smtp-Source: AGHT+IE+Q6PIYzDdNSoHQfMEgTJPKdEnjFwglsLO0gEt7q/0j56YXA/CnyEa9tPCeZtPIufEStcA2A== X-Received: by 2002:a4a:bc01:0:b0:5ba:8ac1:3a29 with SMTP id 006d021491bc7-5ba9151ae64mr4996042eaf.1.1717963584573; Sun, 09 Jun 2024 13:06:24 -0700 (PDT) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5ba977e121bsm1413278eaf.28.2024.06.09.13.06.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 13:06:24 -0700 (PDT) From: David Lechner To: William Breathitt Gray Cc: David Lechner , Judith Mendez , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] counter: ti-eqep: remove counter_priv() wrapper Date: Sun, 9 Jun 2024 15:06:16 -0500 Message-ID: <20240609-ti-eqep-cleanup-v1-2-9d67939c763a@baylibre.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240609-ti-eqep-cleanup-v1-0-9d67939c763a@baylibre.com> References: <20240609-ti-eqep-cleanup-v1-0-9d67939c763a@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.12.4 Content-Transfer-Encoding: quoted-printable The ti_eqep_count_from_counter() function is just a wrapper around counter_priv(). counter_priv() can be used directly, so we don't need the wrapper function. Remove it. Signed-off-by: David Lechner --- drivers/counter/ti-eqep.c | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/drivers/counter/ti-eqep.c b/drivers/counter/ti-eqep.c index 30c35b6c6050..924e379303dd 100644 --- a/drivers/counter/ti-eqep.c +++ b/drivers/counter/ti-eqep.c @@ -86,15 +86,10 @@ struct ti_eqep_cnt { struct regmap *regmap16; }; =20 -static struct ti_eqep_cnt *ti_eqep_count_from_counter(struct counter_devic= e *counter) -{ - return counter_priv(counter); -} - static int ti_eqep_count_read(struct counter_device *counter, struct counter_count *count, u64 *val) { - struct ti_eqep_cnt *priv =3D ti_eqep_count_from_counter(counter); + struct ti_eqep_cnt *priv =3D counter_priv(counter); u32 cnt; =20 regmap_read(priv->regmap32, QPOSCNT, &cnt); @@ -106,7 +101,7 @@ static int ti_eqep_count_read(struct counter_device *co= unter, static int ti_eqep_count_write(struct counter_device *counter, struct counter_count *count, u64 val) { - struct ti_eqep_cnt *priv =3D ti_eqep_count_from_counter(counter); + struct ti_eqep_cnt *priv =3D counter_priv(counter); u32 max; =20 regmap_read(priv->regmap32, QPOSMAX, &max); @@ -120,7 +115,7 @@ static int ti_eqep_function_read(struct counter_device = *counter, struct counter_count *count, enum counter_function *function) { - struct ti_eqep_cnt *priv =3D ti_eqep_count_from_counter(counter); + struct ti_eqep_cnt *priv =3D counter_priv(counter); u32 qdecctl; =20 regmap_read(priv->regmap16, QDECCTL, &qdecctl); @@ -147,7 +142,7 @@ static int ti_eqep_function_write(struct counter_device= *counter, struct counter_count *count, enum counter_function function) { - struct ti_eqep_cnt *priv =3D ti_eqep_count_from_counter(counter); + struct ti_eqep_cnt *priv =3D counter_priv(counter); enum ti_eqep_count_func qsrc; =20 switch (function) { @@ -177,7 +172,7 @@ static int ti_eqep_action_read(struct counter_device *c= ounter, struct counter_synapse *synapse, enum counter_synapse_action *action) { - struct ti_eqep_cnt *priv =3D ti_eqep_count_from_counter(counter); + struct ti_eqep_cnt *priv =3D counter_priv(counter); enum counter_function function; u32 qdecctl; int err; @@ -249,7 +244,7 @@ static int ti_eqep_position_ceiling_read(struct counter= _device *counter, struct counter_count *count, u64 *ceiling) { - struct ti_eqep_cnt *priv =3D ti_eqep_count_from_counter(counter); + struct ti_eqep_cnt *priv =3D counter_priv(counter); u32 qposmax; =20 regmap_read(priv->regmap32, QPOSMAX, &qposmax); @@ -263,7 +258,7 @@ static int ti_eqep_position_ceiling_write(struct counte= r_device *counter, struct counter_count *count, u64 ceiling) { - struct ti_eqep_cnt *priv =3D ti_eqep_count_from_counter(counter); + struct ti_eqep_cnt *priv =3D counter_priv(counter); =20 if (ceiling !=3D (u32)ceiling) return -ERANGE; @@ -276,7 +271,7 @@ static int ti_eqep_position_ceiling_write(struct counte= r_device *counter, static int ti_eqep_position_enable_read(struct counter_device *counter, struct counter_count *count, u8 *enable) { - struct ti_eqep_cnt *priv =3D ti_eqep_count_from_counter(counter); + struct ti_eqep_cnt *priv =3D counter_priv(counter); u32 qepctl; =20 regmap_read(priv->regmap16, QEPCTL, &qepctl); @@ -289,7 +284,7 @@ static int ti_eqep_position_enable_read(struct counter_= device *counter, static int ti_eqep_position_enable_write(struct counter_device *counter, struct counter_count *count, u8 enable) { - struct ti_eqep_cnt *priv =3D ti_eqep_count_from_counter(counter); + struct ti_eqep_cnt *priv =3D counter_priv(counter); =20 regmap_write_bits(priv->regmap16, QEPCTL, QEPCTL_PHEN, enable ? -1 : 0); =20 --=20 2.45.2