From nobody Fri Jun 12 20:22:42 2026 Received: from forward203d.mail.yandex.net (forward203d.mail.yandex.net [178.154.239.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB35F3B5F5D; Tue, 12 May 2026 16:48:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.218 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778604493; cv=none; b=aFveIsOtUnvXXQjyxQOWMuXA8VdO4emGkUsq0cuM9Mmgp9cEnQrEKBV2Gs7akkL4mVt9pVhwSOpuIWWGgARkCud50i8tbLZ3Nec8A8oUyqrtxTpoTbW0EL6DmL/1qTHvdvsC/6ZG71Z7n0/QM9jHgpp9RpBF2bZK/6TZ1xuOeIs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778604493; c=relaxed/simple; bh=NFH6lP7AnuuCgQP4N2w+t3hFItzEvEzxSfBFITYcqEQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=U/waaMj82Xl3zor/1Vx7iyql9JB2i2FmVp9VYb9EysD7tUAOSDq2RPzJ13ByfJm7srZDcaYclv20IEh3w3sgqJFab6QYwmFhfFQiKqXWJp9e4O3h+XrDE2ptKmETu1F2S0i8ifzFdkpOt2UIH73Igb4z7aIb/TMA2l4eeyInyg8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sezginduran.net; spf=pass smtp.mailfrom=sezginduran.net; dkim=pass (1024-bit key) header.d=sezginduran.net header.i=@sezginduran.net header.b=CDUSx+D8; arc=none smtp.client-ip=178.154.239.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sezginduran.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sezginduran.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=sezginduran.net header.i=@sezginduran.net header.b="CDUSx+D8" Received: from forward100d.mail.yandex.net (forward100d.mail.yandex.net [IPv6:2a02:6b8:c41:1300:1:45:d181:d100]) by forward203d.mail.yandex.net (Yandex) with ESMTPS id B892489AD9; Tue, 12 May 2026 19:48:02 +0300 (MSK) Received: from mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:1f87:0:640:a06a:0]) by forward100d.mail.yandex.net (Yandex) with ESMTPS id 10DD7C00A3; Tue, 12 May 2026 19:47:54 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net (smtp) with ESMTPSA id nlNSSYsRFCg0-kt0HFlLp; Tue, 12 May 2026 19:47:53 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sezginduran.net; s=mail; t=1778604473; bh=/K1xA0pNH+Mstfy9sWoEymUCD5DBap6C3W78i/RVEyw=; h=Message-ID:Date:In-Reply-To:Cc:Subject:References:To:From; b=CDUSx+D8KfYE72X2BI0LDhIBPSCwgmEqvfIzKpkPkIdTepE8Yd4jw2sTNLtzYjUqH 9cVTRmvHzGlhNikZXjeVNHO2nCNZeT4Vu3+QK4EL2fpkDla4Mj34iGGXn8mwWEdO2s cOijCao/2ZALFh/DB3V9SQsWEmoShkzJXf4H6NJE= Authentication-Results: mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net; dkim=pass header.i=@sezginduran.net From: Ahmet Sezgin Duran To: gregkh@linuxfoundation.org Cc: linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Ahmet Sezgin Duran Subject: [PATCH 1/4] staging: sm750fb: remove unused includes Date: Tue, 12 May 2026 16:41:21 +0000 Message-ID: <20260512164124.188210-2-ahmet@sezginduran.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260512164124.188210-1-ahmet@sezginduran.net> References: <20260512164124.188210-1-ahmet@sezginduran.net> 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" Remove unused header file includes from multiple source files to declutter the include sections. Also remove the unused CONFIG_MTRR include block after verifying that no MTRR interfaces are used by the driver. No functional changes. Signed-off-by: Ahmet Sezgin Duran --- drivers/staging/sm750fb/sm750.c | 12 ------------ drivers/staging/sm750fb/sm750_accel.c | 14 -------------- drivers/staging/sm750fb/sm750_cursor.c | 14 -------------- drivers/staging/sm750fb/sm750_hw.c | 17 ----------------- 4 files changed, 57 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm75= 0.c index 996a586a3727..d26e9fab846a 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -1,19 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include #include -#include -#include -#include #include =20 #include "sm750.h" diff --git a/drivers/staging/sm750fb/sm750_accel.c b/drivers/staging/sm750f= b/sm750_accel.c index ec2f0a6aa57d..f695a2a61c28 100644 --- a/drivers/staging/sm750fb/sm750_accel.c +++ b/drivers/staging/sm750fb/sm750_accel.c @@ -1,19 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 -#include -#include -#include -#include -#include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include =20 #include "sm750.h" #include "sm750_accel.h" diff --git a/drivers/staging/sm750fb/sm750_cursor.c b/drivers/staging/sm750= fb/sm750_cursor.c index f0338e6e76b1..9d6bca3106f4 100644 --- a/drivers/staging/sm750fb/sm750_cursor.c +++ b/drivers/staging/sm750fb/sm750_cursor.c @@ -1,19 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 -#include -#include -#include -#include -#include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include =20 #include "sm750.h" #include "sm750_cursor.h" diff --git a/drivers/staging/sm750fb/sm750_hw.c b/drivers/staging/sm750fb/s= m750_hw.c index 6f7c354a34a1..34a837fb4b64 100644 --- a/drivers/staging/sm750fb/sm750_hw.c +++ b/drivers/staging/sm750fb/sm750_hw.c @@ -1,23 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 -#include -#include -#include -#include -#include -#include -#include #include -#include -#include #include -#include -#include -#include -#ifdef CONFIG_MTRR -#include -#endif -#include -#include =20 #include "sm750.h" #include "ddk750.h" --=20 2.53.0 From nobody Fri Jun 12 20:22:42 2026 Received: from forward201d.mail.yandex.net (forward201d.mail.yandex.net [178.154.239.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 763963D45DE; Tue, 12 May 2026 16:54:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.220 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778604850; cv=none; b=PqqdxT0SB2pzPp/AISLKcUCPenHHCL7rcvvbn+DZnyxRXlPsCC8sls2KNruaRyAjG4eBtYk87KaoH9PBcOGt7yHTc6WyKyzJS5KOtAowhvJ2dpxZpSpbrjfc8iOgPBF9+ePKzli7yjs3yPJAH0GwIhAdK0024a/x6ZvdFPfbtdI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778604850; c=relaxed/simple; bh=/u3E5r4BMpeh8UtVluRHgFfJElRK1+V1FFj8u7VEeNs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lF0rtCOEDcSDlukrSIehhQG6if3VOfQId0ZOjJSg9shv4Dt7Yd8NMCHY3Xa4asKaIul2v2KrIOfcqHPcg3mK2MkYiucvVPl3xSx72DSiyFyI3zbXth96SCX4bUh0DoBMivKs8c9XGxw8Lc2f0n0gqFxiBNX5imI3y6Nce0rLM5g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sezginduran.net; spf=pass smtp.mailfrom=sezginduran.net; dkim=pass (1024-bit key) header.d=sezginduran.net header.i=@sezginduran.net header.b=X6i6TWVU; arc=none smtp.client-ip=178.154.239.220 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sezginduran.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sezginduran.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=sezginduran.net header.i=@sezginduran.net header.b="X6i6TWVU" Received: from forward100d.mail.yandex.net (forward100d.mail.yandex.net [IPv6:2a02:6b8:c41:1300:1:45:d181:d100]) by forward201d.mail.yandex.net (Yandex) with ESMTPS id CBAF683BD7; Tue, 12 May 2026 19:48:03 +0300 (MSK) Received: from mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:1f87:0:640:a06a:0]) by forward100d.mail.yandex.net (Yandex) with ESMTPS id B5392C0051; Tue, 12 May 2026 19:47:55 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net (smtp) with ESMTPSA id nlNSSYsRFCg0-cQ9lIMaw; Tue, 12 May 2026 19:47:55 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sezginduran.net; s=mail; t=1778604475; bh=djGYuQvNXpa9sAArIcWPO2XIUXUNsetAa9bOTrZwd3A=; h=Message-ID:Date:In-Reply-To:Cc:Subject:References:To:From; b=X6i6TWVU4/3XOemQa8a3DQWAeaoYEgLe1kZZVcy9+kG/kfaA3KbNJ+bTVkSDV+2xo KgaayEFygZI5EhN4wbLT6aOSMxwzmFoJGwsLfjbJwnJM0bqsOysFf10ZpVWgn5O0BO Vgmynri6C+EDvo+ehfxKZ9hj9Wx+94IlnXWmoDi8= Authentication-Results: mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net; dkim=pass header.i=@sezginduran.net From: Ahmet Sezgin Duran To: gregkh@linuxfoundation.org Cc: linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Ahmet Sezgin Duran Subject: [PATCH 2/4] staging: sm750fb: use early returns in frequency checks Date: Tue, 12 May 2026 16:41:22 +0000 Message-ID: <20260512164124.188210-3-ahmet@sezginduran.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260512164124.188210-1-ahmet@sezginduran.net> References: <20260512164124.188210-1-ahmet@sezginduran.net> 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" Invert the frequency validation conditions and use early returns to reduce nesting and improve readability. No functional changes. Signed-off-by: Ahmet Sezgin Duran --- drivers/staging/sm750fb/ddk750_chip.c | 153 +++++++++++++------------- 1 file changed, 78 insertions(+), 75 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750f= b/ddk750_chip.c index 136692b00804..0bb56bbec43f 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/drivers/staging/sm750fb/ddk750_chip.c @@ -61,25 +61,26 @@ static void set_chip_clock(unsigned int frequency) if (sm750_get_chip_type() =3D=3D SM750LE) return; =20 - if (frequency) { - /* - * Set up PLL structure to hold the value to be set in clocks. - */ - pll.input_freq =3D DEFAULT_INPUT_CLOCK; /* Defined in CLOCK.H */ - pll.clock_type =3D MXCLK_PLL; + if (!frequency) + return; =20 - /* - * Call sm750_calc_pll_value() to fill the other fields - * of the PLL structure. Sometimes, the chip cannot set - * up the exact clock required by the User. - * Return value of sm750_calc_pll_value gives the actual - * possible clock. - */ - sm750_calc_pll_value(frequency, &pll); + /* + * Set up PLL structure to hold the value to be set in clocks. + */ + pll.input_freq =3D DEFAULT_INPUT_CLOCK; /* Defined in CLOCK.H */ + pll.clock_type =3D MXCLK_PLL; =20 - /* Master Clock Control: MXCLK_PLL */ - poke32(MXCLK_PLL_CTRL, sm750_format_pll_reg(&pll)); - } + /* + * Call sm750_calc_pll_value() to fill the other fields + * of the PLL structure. Sometimes, the chip cannot set + * up the exact clock required by the User. + * Return value of sm750_calc_pll_value gives the actual + * possible clock. + */ + sm750_calc_pll_value(frequency, &pll); + + /* Master Clock Control: MXCLK_PLL */ + poke32(MXCLK_PLL_CTRL, sm750_format_pll_reg(&pll)); } =20 static void set_memory_clock(unsigned int frequency) @@ -93,37 +94,38 @@ static void set_memory_clock(unsigned int frequency) if (sm750_get_chip_type() =3D=3D SM750LE) return; =20 - if (frequency) { - /* - * Set the frequency to the maximum frequency - * that the DDR Memory can take which is 336MHz. - */ - if (frequency > MHz(336)) - frequency =3D MHz(336); - - /* Calculate the divisor */ - divisor =3D DIV_ROUND_CLOSEST(get_mxclk_freq(), frequency); - - /* Set the corresponding divisor in the register. */ - reg =3D peek32(CURRENT_GATE) & ~CURRENT_GATE_M2XCLK_MASK; - switch (divisor) { - default: - case 1: - reg |=3D CURRENT_GATE_M2XCLK_DIV_1; - break; - case 2: - reg |=3D CURRENT_GATE_M2XCLK_DIV_2; - break; - case 3: - reg |=3D CURRENT_GATE_M2XCLK_DIV_3; - break; - case 4: - reg |=3D CURRENT_GATE_M2XCLK_DIV_4; - break; - } + if (!frequency) + return; + + /* + * Set the frequency to the maximum frequency + * that the DDR Memory can take which is 336MHz. + */ + if (frequency > MHz(336)) + frequency =3D MHz(336); + + /* Calculate the divisor */ + divisor =3D DIV_ROUND_CLOSEST(get_mxclk_freq(), frequency); =20 - sm750_set_current_gate(reg); + /* Set the corresponding divisor in the register. */ + reg =3D peek32(CURRENT_GATE) & ~CURRENT_GATE_M2XCLK_MASK; + switch (divisor) { + default: + case 1: + reg |=3D CURRENT_GATE_M2XCLK_DIV_1; + break; + case 2: + reg |=3D CURRENT_GATE_M2XCLK_DIV_2; + break; + case 3: + reg |=3D CURRENT_GATE_M2XCLK_DIV_3; + break; + case 4: + reg |=3D CURRENT_GATE_M2XCLK_DIV_4; + break; } + + sm750_set_current_gate(reg); } =20 /* @@ -145,37 +147,38 @@ static void set_master_clock(unsigned int frequency) if (sm750_get_chip_type() =3D=3D SM750LE) return; =20 - if (frequency) { - /* - * Set the frequency to the maximum frequency - * that the SM750 engine can run, which is about 190 MHz. - */ - if (frequency > MHz(190)) - frequency =3D MHz(190); - - /* Calculate the divisor */ - divisor =3D DIV_ROUND_CLOSEST(get_mxclk_freq(), frequency); - - /* Set the corresponding divisor in the register. */ - reg =3D peek32(CURRENT_GATE) & ~CURRENT_GATE_MCLK_MASK; - switch (divisor) { - default: - case 3: - reg |=3D CURRENT_GATE_MCLK_DIV_3; - break; - case 4: - reg |=3D CURRENT_GATE_MCLK_DIV_4; - break; - case 6: - reg |=3D CURRENT_GATE_MCLK_DIV_6; - break; - case 8: - reg |=3D CURRENT_GATE_MCLK_DIV_8; - break; - } + if (!frequency) + return; + + /* + * Set the frequency to the maximum frequency + * that the SM750 engine can run, which is about 190 MHz. + */ + if (frequency > MHz(190)) + frequency =3D MHz(190); + + /* Calculate the divisor */ + divisor =3D DIV_ROUND_CLOSEST(get_mxclk_freq(), frequency); =20 - sm750_set_current_gate(reg); + /* Set the corresponding divisor in the register. */ + reg =3D peek32(CURRENT_GATE) & ~CURRENT_GATE_MCLK_MASK; + switch (divisor) { + default: + case 3: + reg |=3D CURRENT_GATE_MCLK_DIV_3; + break; + case 4: + reg |=3D CURRENT_GATE_MCLK_DIV_4; + break; + case 6: + reg |=3D CURRENT_GATE_MCLK_DIV_6; + break; + case 8: + reg |=3D CURRENT_GATE_MCLK_DIV_8; + break; } + + sm750_set_current_gate(reg); } =20 unsigned int ddk750_get_vm_size(void) --=20 2.53.0 From nobody Fri Jun 12 20:22:42 2026 Received: from forward102d.mail.yandex.net (forward102d.mail.yandex.net [178.154.239.213]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9D3B3D45FA; Tue, 12 May 2026 16:48:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.213 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778604490; cv=none; b=aZSN5Sazu0b5AziPmeXScQLWlAsE2KI+NbIhRIKZKtovIY0YBHaLUwVH0bmeaq7SQMldFkLtNtOHVQbBhBQCqziQoLVVRnWuXHNR6bppNNAs7u+j6Gu3RrDg2Hgrwzxq9ofm8Zw0QasgmGBLE6Yr3azya02D8MzIKw7igVAOkGM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778604490; c=relaxed/simple; bh=ytsQiOiP4J+KRZQFTf0GWFtQ8qdDF43YlKKgCmb6LSQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MN0fG3zm0lcnthT/EgX9seED5VVlfUno0LOFvFoP0SW0JO3ppBOZQXe9gC5VtysRhdvF/+gRxypJvV4WFyk+22HkZcbNPdw25MrVdXvZY7/U++cOrgl8wGdxmPkpCXZlUe0ShcZodNV54qEkPefmBS1eXl3p+/S6e7wtnR3ImX0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sezginduran.net; spf=pass smtp.mailfrom=sezginduran.net; dkim=pass (1024-bit key) header.d=sezginduran.net header.i=@sezginduran.net header.b=AAGofYZx; arc=none smtp.client-ip=178.154.239.213 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sezginduran.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sezginduran.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=sezginduran.net header.i=@sezginduran.net header.b="AAGofYZx" Received: from mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:1f87:0:640:a06a:0]) by forward102d.mail.yandex.net (Yandex) with ESMTPS id 3C589C00EB; Tue, 12 May 2026 19:47:57 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net (smtp) with ESMTPSA id nlNSSYsRFCg0-wIRHbZii; Tue, 12 May 2026 19:47:56 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sezginduran.net; s=mail; t=1778604476; bh=wI0GjT53rOIYWqEa0Vm82H2yOyQSsxtXyI3AV87wjos=; h=Message-ID:Date:In-Reply-To:Cc:Subject:References:To:From; b=AAGofYZxOaqTi6beoYOlUEZNYn21coZ3MwztF50WoZRTJHOZMSVlFzADv1+ZUElw0 8kQHZYJ0dvUpIDknnjr91T3g8pLY4ABnMxYMHQWSak7naol6HWIGA4bn57qpjSRGqz MfqQlUYGTl8y3Unf/vnx/Sl4KaEllGWrIikMLgBw= Authentication-Results: mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net; dkim=pass header.i=@sezginduran.net From: Ahmet Sezgin Duran To: gregkh@linuxfoundation.org Cc: linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Ahmet Sezgin Duran Subject: [PATCH 3/4] staging: sm750fb: remove unnecessary initialization Date: Tue, 12 May 2026 16:41:23 +0000 Message-ID: <20260512164124.188210-4-ahmet@sezginduran.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260512164124.188210-1-ahmet@sezginduran.net> References: <20260512164124.188210-1-ahmet@sezginduran.net> 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" Remove `data =3D 0` initialization since the variable is reset each time in the for loop. Signed-off-by: Ahmet Sezgin Duran --- drivers/staging/sm750fb/sm750_cursor.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/sm750fb/sm750_cursor.c b/drivers/staging/sm750= fb/sm750_cursor.c index 9d6bca3106f4..f822d147ede9 100644 --- a/drivers/staging/sm750fb/sm750_cursor.c +++ b/drivers/staging/sm750fb/sm750_cursor.c @@ -84,7 +84,6 @@ void sm750_hw_cursor_set_data(struct lynx_cursor *cursor,= u16 rop, /* in byte */ offset =3D cursor->max_w * 2 / 8; =20 - data =3D 0; pstart =3D cursor->vstart; pbuffer =3D pstart; =20 --=20 2.53.0 From nobody Fri Jun 12 20:22:42 2026 Received: from forward102a.mail.yandex.net (forward102a.mail.yandex.net [178.154.239.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1CE13D5C21; Tue, 12 May 2026 16:48:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.85 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778604491; cv=none; b=YT1rB+LuMPdPqgzXUlh3x1n8yaiTXXL2sOreJKsmk49HnJQuo/DbKvwwjwy59fR6gyciCaXTAoMXY3Uh/kOhI8/8PACNHw+kkpcbAmDQuc3T0T9WxpaP3MXkWrZwMU7LjVe1xfc4n01MK57D+N4I9cQVlksjTfydFnp5R0VxpcQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778604491; c=relaxed/simple; bh=Gnn1Do81QrR5wbkPcvYAjV4e1rUZsyWvtIaNJyyyrU4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rRFoPplDTUJ23zrwI6u3P/x9uuVc/pscoqVMZlSl7D5rFtiOsSevUrRtBe2rWOupgDcnXlW8gc1WUn65JOoNK4kaJQehiO2ih02Cu5gM1VXFKOcI0jtRzoMiIXz1K0de092Ks8KIMmKOZr6lRPnrIiRMYisyNB7R+U9YrmqY8ks= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sezginduran.net; spf=pass smtp.mailfrom=sezginduran.net; dkim=pass (1024-bit key) header.d=sezginduran.net header.i=@sezginduran.net header.b=c4Ykpoxy; arc=none smtp.client-ip=178.154.239.85 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sezginduran.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sezginduran.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=sezginduran.net header.i=@sezginduran.net header.b="c4Ykpoxy" Received: from mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:1f87:0:640:a06a:0]) by forward102a.mail.yandex.net (Yandex) with ESMTPS id 35EDEC005B; Tue, 12 May 2026 19:47:59 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net (smtp) with ESMTPSA id nlNSSYsRFCg0-fwHlyR5l; Tue, 12 May 2026 19:47:58 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sezginduran.net; s=mail; t=1778604478; bh=5pWz9nArF2Zrub8NMeqq45B5mVOj7NGAOhfY1XGqvNc=; h=Message-ID:Date:In-Reply-To:Cc:Subject:References:To:From; b=c4YkpoxyJJxnCYNd2svB5nAgROxgnj6jRI4Xip2K2QiCFTqhZTGZRv7YMNCz9LiuN Xh31D9zWUkWN1QrwSPe1lk3Tnh8dvtQUkRlXi4XmRiR5Tz3Ey5I4RhsCTYZNT+7uac vFWDNyw3dJRaAhEqXuO84LJbQetyUSu+LREnl6Ig= Authentication-Results: mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net; dkim=pass header.i=@sezginduran.net From: Ahmet Sezgin Duran To: gregkh@linuxfoundation.org Cc: linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Ahmet Sezgin Duran Subject: [PATCH 4/4] staging: sm750fb: remove double space in assignment Date: Tue, 12 May 2026 16:41:24 +0000 Message-ID: <20260512164124.188210-5-ahmet@sezginduran.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260512164124.188210-1-ahmet@sezginduran.net> References: <20260512164124.188210-1-ahmet@sezginduran.net> 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" Remove extra space after `=3D` in assignment of `reg` variable. Signed-off-by: Ahmet Sezgin Duran --- drivers/staging/sm750fb/sm750_accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/sm750fb/sm750_accel.c b/drivers/staging/sm750f= b/sm750_accel.c index f695a2a61c28..e3225c0c320b 100644 --- a/drivers/staging/sm750fb/sm750_accel.c +++ b/drivers/staging/sm750fb/sm750_accel.c @@ -26,7 +26,7 @@ void sm750_hw_de_init(struct lynx_accel *accel) write_dpr(accel, DE_MASKS, 0xFFFFFFFF); =20 /* dpr1c */ - reg =3D 0x3; + reg =3D 0x3; =20 clr =3D DE_STRETCH_FORMAT_PATTERN_XY | DE_STRETCH_FORMAT_PATTERN_Y_MASK | --=20 2.53.0