From nobody Tue Oct 7 00:21:13 2025 Received: from mail-oa1-f46.google.com (mail-oa1-f46.google.com [209.85.160.46]) (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 45A751F2BAD for ; Wed, 16 Jul 2025 03:38:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752637091; cv=none; b=rPYt79cYzHqjjeeimpQ85hF8eCIQdhUP/abQ4GI7/59qsOnHj56wbqBlar7SpeQyDf11Q8FNv59uBkwS6JLDM6uK6I1m5dvgPwafNZIsc0MR2Rumj36+bIcwqNcF0TlDRRDyoASVxNUMmzbwZCnhde6Lcc2QejuJlbuNnFpN10c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752637091; c=relaxed/simple; bh=9fmm5M55Ppy7CKgsyBOqgK6g0dO78d7D3fbfugO4hzE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=cDumd83ZyZNGySIsU8hzJhFA5D3rnqizvj6wwgKkaqcaNk6ZzOlOd17OcwGrzZPAC+mSSzMCwBwCu1WYxCZs2zieBjCu6nOuj0sNfpoWUd55OvSXAwmuZDqh9eNS98s1avzgfTWHyefnysdywlGNr4tnIi32RJRW2CpmHeqQtbI= 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=ZBHF9sb/; arc=none smtp.client-ip=209.85.160.46 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="ZBHF9sb/" Received: by mail-oa1-f46.google.com with SMTP id 586e51a60fabf-2ea08399ec8so3859148fac.1 for ; Tue, 15 Jul 2025 20:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1752637089; x=1753241889; 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=EyAgi04IKnPOMF045RBHfSOBtdrD6l8/VwYx4LR0WfY=; b=ZBHF9sb/XC5xBMcUfEMjTMUoZkU3C8kMtxwC0FKJ2nuTB++4guthewsIAwcGH2sIU/ 8g8oIKDgRgAU57XALLc0dBsLwUaVyLtJ822ZzeaUAQvrbwslrqPwY5Ed+ldpU8qoHyOx ZMyMelR3QdsPceT2ngt9rLOap3Naun8UIEgKGDPe8zPimbo6/VwTMzLhyj/vhTIsxeem mSiIcNOw/bFN1K+DuyPwvNLfk1eoNSd/RD71mms2WgEPGt/IpBsjaw8rWjutcvmdnW7g +htscYF1zI1yegriK1DmhmuiipSmvPez8REfJ6rkxYPVmImdhQLhfW1KMc6qSPwivtNV lV4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752637089; x=1753241889; 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=EyAgi04IKnPOMF045RBHfSOBtdrD6l8/VwYx4LR0WfY=; b=DH07syTw95tCUi9hV8k+s7visUYslTBVpd0WdMUnv0d0ltqOBIpTLACkUPMM23Vr9Q TjgkIQ8xfFWZSoSsqJ0o7s4+6ihtl1H2/M7Mt2oJXqkxvn7sNh5ZY97JMvJt/jIKa4tp e4HCINzi38ET5RjnB4sEbG/W8dE0E4Pi8dkegbkyRa6HDZBgZJbX1gQn4fSh0K2Ysu1q tvcK31dofZNU2xI+q8TMmOYgf78oW1jtwBRojMJVSvQUzT+xUHE+d+MjRk/4Fl8OCO6H 5ooZJYBr8LTVJWio0p6ddHNjKcFSxL0Rt580DhKmsNrcngyCCmD6sqrK5cGxANqU+5VU ptcw== X-Forwarded-Encrypted: i=1; AJvYcCWdjevA7ui6JLlRuOyT3HHJLaXr4yVT9ingVgHRVfEXTj1ICR5JvQDa+FyMQo7fprkVT+i0lPAdsjm8DYc=@vger.kernel.org X-Gm-Message-State: AOJu0YzYkV9pdXroBwpOuon2KQQ84HBsvPOaA4cwUPSPjAAiMTZOJ+3C vyHbSMujNMQX5YjXm+txzzDVd+/M2pLTE7D8p6v56mvz4lYKMSdzNScE X-Gm-Gg: ASbGncvUiuJLy1oyVPtBTvCv+0V2punBJFvFJTges1o4oJVH4IfiC8N7az1mQHFROjT WA8V/ksFaW+mjj5Inaruf5IWpwLZG6Kh33+z61iLtE7X8SfwZQeiflh0Iirx0NH8jluGtge16OT S892BcET6GVvjmUhP1+27iz5i3vV681eACFaYW3AVkrjl6S9S8zPvPp63IVe7unCZAoYndQ9cvP unpO0D/X5Hlrkk8UV7XhNey7OAvaxhoC1VZvqS23mYjXY0r7dry/uQWl2vDtKV/09Ha+WeAR56n OkWHDEL3uGizgGIpFogdXA+t5JCDpcV/w4ox0ln/aSC+CNuHN7LBEJTRssQvojKZRKs6Wec6Hpb Y+ki/HVb+t95WEB9y1S5v6qj43oD4W8v8zQyCYFiqXKtunoTVbhURPV1hyhXje5U= X-Google-Smtp-Source: AGHT+IGQO3BKn2UcWw7Ik8pzXHP0U4Uv/SaDrxeJaOX3rFQLbMUuLy0SunGeQW2s8mb8i4Oejit9nQ== X-Received: by 2002:a05:6870:5494:b0:2d5:25b6:ec14 with SMTP id 586e51a60fabf-2ffaf32804bmr1505309fac.15.1752637089255; Tue, 15 Jul 2025 20:38:09 -0700 (PDT) Received: from localhost.localdomain ([181.161.11.224]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2ff116d22easm3140980fac.33.2025.07.15.20.38.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jul 2025 20:38:08 -0700 (PDT) From: =?UTF-8?q?Ignacio=20Pe=C3=B1a?= To: Dan Carpenter , Greg Kroah-Hartman Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?UTF-8?q?Ignacio=20Pe=C3=B1a?= Subject: [PATCH v2 1/3] staging: sm750fb: Fix const declaration for g_fbmode array Date: Tue, 15 Jul 2025 23:38:02 -0400 Message-Id: <20250716033804.59650-2-ignacio.pena87@gmail.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20250716033804.59650-1-ignacio.pena87@gmail.com> References: <20250716033804.59650-1-ignacio.pena87@gmail.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" Content-Transfer-Encoding: quoted-printable The g_fbmode array should be declared as const pointer to const string as its contents never change. Signed-off-by: Ignacio Pe=C3=B1a --- drivers/staging/sm750fb/sm750.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm75= 0.c index 1d929aca3..d3bce107f 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -33,7 +33,7 @@ static int g_hwcursor =3D 1; static int g_noaccel; static int g_nomtrr; -static const char *g_fbmode[] =3D {NULL, NULL}; +static const char *const g_fbmode[] =3D {NULL, NULL}; static const char *g_def_fbmode =3D "1024x768-32@60"; static char *g_settings; static int g_dualview; --=20 2.39.5 (Apple Git-154) From nobody Tue Oct 7 00:21:13 2025 Received: from mail-oo1-f45.google.com (mail-oo1-f45.google.com [209.85.161.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 11147274B4F for ; Wed, 16 Jul 2025 03:38:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752637093; cv=none; b=naytAwrc0kInxHaDh7Nt+H1LkfyP99Qntb51ftonFgLGREWDojTX8pZjxu6PiH8Ghi/xY3leZaxGkzjZG1kZ8xBTQleVum6Ht7pGd5uqopYRioMT/Ei/x4W8rXy5Rh+XsSBj6KDjEU5RPYwcMCuCoR8ULWT54J6Z5VXVYtY9FUI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752637093; c=relaxed/simple; bh=YkOymsbrNFSkPHr2H/MLJ+sTTzLwp3OS0KBXDQCmCtw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=NBcMb4F6x83z96yxmQeFL5T+DJ4Ad4BNDsxQl4twZrXZhS2bF53POGEECP43mDibFxF09zo678ZFQe8SBnn06oNlHjDisa6yznDfirp9sS8n4dQvk8WARSe4ntJAQ26GrMMDBm31gpoJjlEucJ6dRww9+8eVcBQNKRPSByprTBI= 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=Fdt3wWQm; arc=none smtp.client-ip=209.85.161.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="Fdt3wWQm" Received: by mail-oo1-f45.google.com with SMTP id 006d021491bc7-6159c26766fso474963eaf.1 for ; Tue, 15 Jul 2025 20:38:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1752637091; x=1753241891; 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=aTQYh3TSQe3Ke5lhkP3Kv1GZGvu8tMfK/edh4edU7rQ=; b=Fdt3wWQmHJCM5HnA323nT87Ns6aCKriZayU5ZCGsY2sEUOKbbxt+jg1I5fBEaakJp6 5EnlbK7lq0CgA4xb9q+NBVA2tepqM0OwDvhgaCDHvqU7g0Cd03r08NPPYy1ZDKRa7KV8 gxKHilY7dTfaphJH4qrIC98cOTLpHPyUmeAFjKki610Z7RbmDoyzO7n4LSF3tSmSTti8 0fpmIahSI2BeFKNv8ZTS9g6IULLD3JU9VySt3z72EO20K6+GtcC5HoBFcrjspoC3SKap zCZl9YOL/wJNzwBxbxmUM/WTnj6BLIVkIscao5q5zhwi0wdNDtFIqpfJZNuNDJsO6BeK G0eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752637091; x=1753241891; 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=aTQYh3TSQe3Ke5lhkP3Kv1GZGvu8tMfK/edh4edU7rQ=; b=TlfATp3hUxx7cft0L87bQawni379HSoQ+QfeImvENdmqxw5hcKwXxYivwRikPQtjal R5CGV+iz3abXx9IZq6C32WzKMgkNChzoQN8lv3Wuc9Lf5WSLVPQvPD5Piu/g8ac7xjOp BiAfznIX3KUNg25OOoWrvUkKT9hBmLLHPgqXy4jC9TGS7z2Z780W2UZVQ9VmNUt6uHc7 nxVtC2UMARLlgWIJC6zuuJbyqUyQo3g9Y7/7pF05bBhpUPPR4HBxz9fyjf6CdJcofRM/ Gl7feM0JuzlRGyxNN0SVBLIhExj0XOZl6+izk7h/b+QJreM216He4Bf2t46dPu3ftNs9 kSzw== X-Forwarded-Encrypted: i=1; AJvYcCVyA6P81GZrxULw5bEJc9SQlngblQ+Xxr8QKO69oGgJp6iUZ2MdpqaRYixh9MCkLtqPOB1O1TRh2xcjMoI=@vger.kernel.org X-Gm-Message-State: AOJu0Yzdh+/fpJK7H9mi92iS4+rRYl3wiYLEKaffW6r/BUYC7tjmILRf bgMPzVGdkVHkO82Xw+B3FidDbgj1gBV2LVu1K2SWOkwNq9nmFOVfK3k0 X-Gm-Gg: ASbGncuSb4kTsB/uJdaxHQD13I+CfHNHYEpr9+iCO93iX/Yk2ugSx0uRnjrEwkJQYvv PaPhHRmcZz1WIXcFLljPijN6BVQexZTNFgcaqBCzwszvElqx1nrLMelHMzIWtZI7Wh+zPvoQjaH GO/izDVm8x08Vw4xN9BrxlNMz3IOSR6bVZ8BWaOONYMuSxx3F5/X6ld9q1DutLnYjYL/nwWRutl psdx5oQ++N/xh9/smJpZ6x6XuzeAgkwTfYgomaGBJJ+i0swdl+Kf83vsu+EGSf9n/ILCw+4XNbq vj2rjwohuZwhRBsTvf9zYXuZiW8RIMryWu0YOMi2MgE6KwDdQSuc2e9EgqMi3d3+CF1LMbWkR1T z9FojP0r99Z/y9gwWZwVspXsIDPC/8AQidBNKQ3LFbQMMIyyQBb1M X-Google-Smtp-Source: AGHT+IGS7bx9+KmZh+bTEnWGO72xVs02ddqV8Ipzq9HBFxZ3uwMCtTt3ij/EF8xas3sKxuD/Z0KY3Q== X-Received: by 2002:a05:6871:5895:b0:2ea:d491:eb45 with SMTP id 586e51a60fabf-2ffb244a744mr952449fac.18.1752637090920; Tue, 15 Jul 2025 20:38:10 -0700 (PDT) Received: from localhost.localdomain ([181.161.11.224]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2ff116d22easm3140980fac.33.2025.07.15.20.38.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jul 2025 20:38:10 -0700 (PDT) From: =?UTF-8?q?Ignacio=20Pe=C3=B1a?= To: Dan Carpenter , Greg Kroah-Hartman Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?UTF-8?q?Ignacio=20Pe=C3=B1a?= Subject: [PATCH v2 2/3] staging: sm750fb: Fix function parameter alignment Date: Tue, 15 Jul 2025 23:38:03 -0400 Message-Id: <20250716033804.59650-3-ignacio.pena87@gmail.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20250716033804.59650-1-ignacio.pena87@gmail.com> References: <20250716033804.59650-1-ignacio.pena87@gmail.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" Content-Transfer-Encoding: quoted-printable Align function parameters properly to fix checkpatch.pl warnings about misaligned function arguments. Signed-off-by: Ignacio Pe=C3=B1a --- drivers/staging/sm750fb/sm750.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm75= 0.c index d3bce107f..a896227ef 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -121,13 +121,13 @@ static int lynxfb_ops_cursor(struct fb_info *info, st= ruct fb_cursor *fbcursor) sm750_hw_cursor_disable(cursor); if (fbcursor->set & FB_CUR_SETSIZE) sm750_hw_cursor_set_size(cursor, - fbcursor->image.width, - fbcursor->image.height); + fbcursor->image.width, + fbcursor->image.height); =20 if (fbcursor->set & FB_CUR_SETPOS) sm750_hw_cursor_set_pos(cursor, - fbcursor->image.dx - info->var.xoffset, - fbcursor->image.dy - info->var.yoffset); + fbcursor->image.dx - info->var.xoffset, + fbcursor->image.dy - info->var.yoffset); =20 if (fbcursor->set & FB_CUR_SETCMAP) { /* get the 16bit color of kernel means */ --=20 2.39.5 (Apple Git-154) From nobody Tue Oct 7 00:21:13 2025 Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) (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 8685E278E7B for ; Wed, 16 Jul 2025 03:38:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752637095; cv=none; b=Qs3H8oAJEnpGun/ErZyjYyJbnpO1bPIZBoxWlh9/kFpXX/flTN9ZpZPldPeqT5HAPvE9d5cADaKJ3/efmdcWbp5L6+jOuH3yVyO8G6NguViuWGemoI7IzLBG0bI98h+6pJPrkoDcE4N+5nE4L9IaYC9e2LxHcgRFfCjEmsfTnm0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752637095; c=relaxed/simple; bh=m4veNJrjCLTKvu1iSBXId7E1tBvXo4OimoJ/Mueem9E=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=ct5aCx9s//vHe0aM3J6tVfCbbZ1aTNOpDKx4euAy0tg/Re3t3Nle5MKlxU3peoMtSnSvoDHvP1sBeNKs2A2m3a5OLZ6OxWv5fsrv54Emgv/7Uc115/hcYbZxIxsD4blgELI8yJf6xca9F+rxECCk+/e6D6uDgYZ0UuVaUNoWxgU= 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=bBxclEPx; arc=none smtp.client-ip=209.85.210.42 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="bBxclEPx" Received: by mail-ot1-f42.google.com with SMTP id 46e09a7af769-73e57751cd9so548024a34.1 for ; Tue, 15 Jul 2025 20:38:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1752637092; x=1753241892; 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=xV0AnC79VI6gCrCB07gTOb5HX2nG6iuSm2nLX9idpbI=; b=bBxclEPxEXBFQLVLFUDTydFY79vwfG+Mv9eOkqvM3FgwJg8a8e81JNqL+EP+mjySe0 mhl8xJ673G6ct6tB6BctQ14EoXXbIxoL7t+Pq0eevb2141Jtnukc5JG0sPrDmeazjsdT NCVoGsFxOMKFYyf4ehqXAYqIXJwotLsNSgq2V75OQd8Ls6caOVk797DAEIjKBBOc4aAN R1sENcxIU3XbxE7y7KGIwBSyG57HheCjI2gEgFj2PV6uHMx1APrf+4lRLRmEmEjWcis0 rGRM99VjNH88W4+O0p7g9A29Ba2UCVSDwReYxriqQDnG+zYILKO9719MMDSB91mYSEJY zLFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752637092; x=1753241892; 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=xV0AnC79VI6gCrCB07gTOb5HX2nG6iuSm2nLX9idpbI=; b=Y+uzcbZJyOxk3gkJEg5l6H9OmG8MzlH2abjQJ+us4WQxkIiZ0EHSDNrzMK+jWcJETs i86jI3M8oAZ4ABWEAqrao5cctcuznSkilfObldBuen5L7KtOB5qBSpjh7xOx2IkuYyeb CT1wu4p8m+rMGyTUyUIRRlGaxYtG8hXYSlyzV155oR9aSYZqq6AclFEwjEKWBtmUlrHM 3iEUWkv8LPZMo4q+sHeBNVZmCeFYtSY6yS5wtR130z3t/p8C4n3k7XlQSjgJWHQnR4BL J/UyivsODkK3UEkXBgKVmNeY5sc06KoP15RRSp0urvi5p8HsO0AzaIzWRidZpDbZ1sWa YwgA== X-Forwarded-Encrypted: i=1; AJvYcCVvBI3YFr+ayO6LBSq9scwFhTgdwyzb7FJjRvREh3GsCiBg6BJ6ccq+k/DvG6ugqJ8gstDqBL2iVDH5KSM=@vger.kernel.org X-Gm-Message-State: AOJu0YzWnQeZFTQwsKRKNLYrzKYeBUb2ybWIrqTh6JcYFOtvsP7Wd8+q hR7SfmIIlOg/+FmNmZBWrFRXC+um6A2FMNmkxTEo9Kr0lj5nXxJuvewQ X-Gm-Gg: ASbGncuao8a/Nfp0gjmcLcWiETJ/LViGG0dIDoQxBKkZwGQ4ImbWrg7xz0QxLki54qO dwpakQCMnAisormvj0WzBToHlCGw3O/XEJ0o0Uw/v6lm/aFPMTBKpzdjp8gdynR7pbX517V4tdt IisPsqfEJlksHkfwNkRkl7JZ6/KnEZO9tAj6SAP0g9FdM2Iqh8WjF2SPv45RUWe8eDzy1iRQg3m +Ie5GEiLaZRQw7B2CFX4WWl72c0blG30ue8dm5AlZQDjOFoQvfDZm2PnGqll4DVQ1X7GHVD0OGS ItakvU2Z/C38k85LoGOlZ3s9EQY4r4VsAdJBtDRd2IN9WjjpQzWK06wLScNxodFfLHrELwsieyf TyE2wCXY4m8rmu5ZgkZq26hUlJi0zgn4Mg3CTUhS6W82ykiLxsEfqbvzMaEy8Pcc= X-Google-Smtp-Source: AGHT+IEr5iLn9be4GrnFM45RjIpjgyYaTlcLT7ci1XZtjOeq/uRd1wyTTBOpNbesKlRS67XBqEwcrw== X-Received: by 2002:a05:6870:304a:b0:2fe:f4f4:8501 with SMTP id 586e51a60fabf-2ffaf4dd538mr1364166fac.22.1752637092573; Tue, 15 Jul 2025 20:38:12 -0700 (PDT) Received: from localhost.localdomain ([181.161.11.224]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2ff116d22easm3140980fac.33.2025.07.15.20.38.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jul 2025 20:38:12 -0700 (PDT) From: =?UTF-8?q?Ignacio=20Pe=C3=B1a?= To: Dan Carpenter , Greg Kroah-Hartman Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?UTF-8?q?Ignacio=20Pe=C3=B1a?= Subject: [PATCH v2 3/3] staging: sm750fb: Fix CamelCase variable naming Date: Tue, 15 Jul 2025 23:38:04 -0400 Message-Id: <20250716033804.59650-4-ignacio.pena87@gmail.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20250716033804.59650-1-ignacio.pena87@gmail.com> References: <20250716033804.59650-1-ignacio.pena87@gmail.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" Content-Transfer-Encoding: quoted-printable Rename variable 'Bpp' to 'bpp' to fix checkpatch.pl warnings about CamelCase variable names. Use lowercase naming convention for local variables. Signed-off-by: Ignacio Pe=C3=B1a --- drivers/staging/sm750fb/sm750.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm75= 0.c index a896227ef..f36ad8324 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -160,7 +160,7 @@ static void lynxfb_ops_fillrect(struct fb_info *info, { struct lynxfb_par *par; struct sm750_dev *sm750_dev; - unsigned int base, pitch, Bpp, rop; + unsigned int base, pitch, bpp, rop; u32 color; =20 if (info->state !=3D FBINFO_STATE_RUNNING) @@ -175,9 +175,9 @@ static void lynxfb_ops_fillrect(struct fb_info *info, */ base =3D par->crtc.o_screen; pitch =3D info->fix.line_length; - Bpp =3D info->var.bits_per_pixel >> 3; + bpp =3D info->var.bits_per_pixel >> 3; =20 - color =3D (Bpp =3D=3D 1) ? region->color : + color =3D (bpp =3D=3D 1) ? region->color : ((u32 *)info->pseudo_palette)[region->color]; rop =3D (region->rop !=3D ROP_COPY) ? HW_ROP2_XOR : HW_ROP2_COPY; =20 @@ -190,7 +190,7 @@ static void lynxfb_ops_fillrect(struct fb_info *info, spin_lock(&sm750_dev->slock); =20 sm750_dev->accel.de_fillrect(&sm750_dev->accel, - base, pitch, Bpp, + base, pitch, bpp, region->dx, region->dy, region->width, region->height, color, rop); @@ -202,7 +202,7 @@ static void lynxfb_ops_copyarea(struct fb_info *info, { struct lynxfb_par *par; struct sm750_dev *sm750_dev; - unsigned int base, pitch, Bpp; + unsigned int base, pitch, bpp; =20 par =3D info->par; sm750_dev =3D par->dev; @@ -213,7 +213,7 @@ static void lynxfb_ops_copyarea(struct fb_info *info, */ base =3D par->crtc.o_screen; pitch =3D info->fix.line_length; - Bpp =3D info->var.bits_per_pixel >> 3; + bpp =3D info->var.bits_per_pixel >> 3; =20 /* * If not use spin_lock, system will die if user load driver @@ -225,7 +225,7 @@ static void lynxfb_ops_copyarea(struct fb_info *info, =20 sm750_dev->accel.de_copyarea(&sm750_dev->accel, base, pitch, region->sx, region->sy, - base, pitch, Bpp, region->dx, region->dy, + base, pitch, bpp, region->dx, region->dy, region->width, region->height, HW_ROP2_COPY); spin_unlock(&sm750_dev->slock); @@ -234,7 +234,7 @@ static void lynxfb_ops_copyarea(struct fb_info *info, static void lynxfb_ops_imageblit(struct fb_info *info, const struct fb_image *image) { - unsigned int base, pitch, Bpp; + unsigned int base, pitch, bpp; unsigned int fgcol, bgcol; struct lynxfb_par *par; struct sm750_dev *sm750_dev; @@ -247,7 +247,7 @@ static void lynxfb_ops_imageblit(struct fb_info *info, */ base =3D par->crtc.o_screen; pitch =3D info->fix.line_length; - Bpp =3D info->var.bits_per_pixel >> 3; + bpp =3D info->var.bits_per_pixel >> 3; =20 /* TODO: Implement hardware acceleration for image->depth > 1 */ if (image->depth !=3D 1) { @@ -274,7 +274,7 @@ static void lynxfb_ops_imageblit(struct fb_info *info, =20 sm750_dev->accel.de_imageblit(&sm750_dev->accel, image->data, image->width >> 3, 0, - base, pitch, Bpp, + base, pitch, bpp, image->dx, image->dy, image->width, image->height, fgcol, bgcol, HW_ROP2_COPY); --=20 2.39.5 (Apple Git-154)