From patchwork Sat Nov 11 10:41:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2997 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 721E23F057 for ; Sat, 11 Nov 2023 11:42:38 +0100 (CET) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-543f1c6dcaesf2047460a12.1 for ; Sat, 11 Nov 2023 02:42:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699699358; cv=pass; d=google.com; s=arc-20160816; b=tVlSj0KkBq4kakZJmbxsdwfUsGJiooLymYA9lAKbq1P68cOamfGhlFdAYa5UXmKSce lL0rliCgEJEHUeu7tv9cJH/ODM3cLYAARFfOLRcH7J5g9zs8CMbsAD/L16q6RPxGiz8m CifI7108OwYbwFWX6PpBrIn6vD5DB69XgXAGxp1isgEAISrAOXbySBpVs0igztUEB6jY waZ5Af1iZ3nZBjeSgC56vqby/gyCINePBrVwnGbwQPkpovBfXLoo1X99dsQuoGZjYH9S OdOcJeN/LCazt130zI9t+9Fi5+VOv2vYwmGU9IN65k+3nhR3YJEIZjk32HNYnuWTuiB7 aZfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=oRr5nsR+900du5/pkBjTIVGRojqqC1dLhI+C3gWZmpk=; fh=GXyCuaO7mljfRZuDSHr1xseCHKUjkPQV0dF3zOsFIac=; b=RQLlc9iNPMbN9h7L3ymluCWSMex6WVBwqdKiA8VKVfddJCtS8GLtOBhlQMqbYowE2a DjbU5KP+5RZYjhJuyatAsDudZc/4RTMgM5C6QGbT9aS1Eus/Dk4sy05bBw18eRcYtgs/ G3nCXyYcWM/FMJXXiTe3EJAMcGwN+Wu6+SmW7Q3u0oG48BsViqm3eLcPOVt+uvZmvosl kxEcWiBsXOULAHl/vjIuk4RhRntScRZgsfWwRDky0D2vpm80BiKIeq3BR4kxx/98Z3Nf HWg2k3SyAxoogxB0NrRUPbVRXGTh7lOkzZDasiGZkRIkyXywJsV90B88p+1fYZ1vDWZy /HAw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OwrTbHHa; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1699699358; x=1700304158; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=oRr5nsR+900du5/pkBjTIVGRojqqC1dLhI+C3gWZmpk=; b=nY8pBlHxGcYIrmu//5eLvWMjmgBtBWqZid34sA+UiNWnTRUVCCyB1SD0dkiqCVAnBB DieNH4BZjyEWtE0z6z0ZXw0CsVx0b5H314sraDHuRZ3x1+XuVL6TokqKNq4MCZUG5ica Nyn3pHBIV6SMj4qlFIzhYV+5PO0/USy2lzh7s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699699358; x=1700304158; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=oRr5nsR+900du5/pkBjTIVGRojqqC1dLhI+C3gWZmpk=; b=JwFuekZSmw8H3SbmXT0lBgcObDt26KH8kUnSC9LYoOCgy6HBI0zLb3GFxN3AxdWoVy H37PWcViNDK7PIy+eSnOgDMz7sBcnLQDDFe4KfkbXYH+XkMojUXUIKOuuItvxQ7eKpg9 b8IZm9oNG61Tdj8lIQ5r+dfhmyBsapmIlW2NlGo34LzUzWy2GMAG7PhBl6BVetWqx2Pu zLw4bQWlZtNm8rqNdgi2jpjfryIR/oQrlQFaoUEidjq1BO+Rb7wYddY63f9aKKPQoG61 VYePetrMfXzp1Ds/5NrkNs6RAWW/JYPknKLf9Tvi23/F7IcgbRZnkXWXlY9pHHDp1ztn sf8Q== X-Gm-Message-State: AOJu0YzXGRALbpZP+PfLRMxN7nQ86Fyd8hKmf0Dru9PeO+2OFw93rTXZ vAbcJqT4VOaAlDb1YGEjMFNGWHbS X-Google-Smtp-Source: AGHT+IFuW2zIzj+qaxLyaND/qtIFuZTOd9pgdxkN4EEB4CTfztgqYTiEpOqnnGh85Z4MKM8mWQH3Qg== X-Received: by 2002:aa7:d14b:0:b0:543:5568:8dce with SMTP id r11-20020aa7d14b000000b0054355688dcemr1276309edo.30.1699699357960; Sat, 11 Nov 2023 02:42:37 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:5156:b0:534:7b4a:8d91 with SMTP id n22-20020a056402515600b005347b4a8d91ls50558edd.2.-pod-prod-06-eu; Sat, 11 Nov 2023 02:42:36 -0800 (PST) X-Received: by 2002:a17:906:2c48:b0:9bf:697b:8f44 with SMTP id f8-20020a1709062c4800b009bf697b8f44mr1015705ejh.6.1699699356357; Sat, 11 Nov 2023 02:42:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699699356; cv=none; d=google.com; s=arc-20160816; b=ZF+F2/79D+YKM+Y6xIbh6WP4cyGxKkGrWBKkKNXFXWtYJMmhux6gxiTRRWkzdU/7gL c8w2wFUOxAav1RwTiEA0vwh0Oc+BNYVHjWYfaJeNGyyyeI+oOYiS4oaxU/vApvcUUWwQ ZaiRltPaYRERcMYw4iha1pbbADTXgQx5LeBZXekdxSeeGwqfN1/Dy5SnrWv1DohHC9wm NK+fbFF3cudJ0PGZq1X9JgdD6N7yWQ3KKC/7CiQezb3RJBS11OuvW4tE5w2eRWkCyDNj lyy/HRMbjdE8JAilqHQn7KZCtOIxshdCnPcGqhD9g2g6OS+ByR3uHib36bUcoScEbhiS sbZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=ge0gNi9DVXfC2vKDgGEclw0Ori58fekABd1HKK5RJHA=; fh=GXyCuaO7mljfRZuDSHr1xseCHKUjkPQV0dF3zOsFIac=; b=jfwE31Z9y30oZPqYB6J2OEZVzoYY8nK/ftXQqCteQto+oVFxV0vJX8SUZSJKljW2LI cnB1KdQkd3ZWcbCc7ehz40a09hFAUqMNM1gRbKiFw/HnOW+wAmX+lUfcrBlIlcBEVyB0 4SvwpsbBu6A6EIcDS9wCzjWQBcJbOhemNy/Zr7qcShLsUyvAYtN6vDNVlLDzcYZ9M6lq oR7E9ZK3aBTCWLl4REBeTVjYJrVlRH0V1lP3hRa2zbWne0Kj2EyyHISsV1pklZHiPUrj pOMSe2RRY8/7e+QOMqVXLtimhYU5VCU5bjgdcNhtaG65FuEVtbtuz8GTXgWpzZ7NHpgd lX7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OwrTbHHa; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 18-20020a170906209200b009b30677d149sor264910ejq.14.2023.11.11.02.42.36 for (Google Transport Security); Sat, 11 Nov 2023 02:42:36 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:906:4c84:b0:9cb:5a8a:b19d with SMTP id q4-20020a1709064c8400b009cb5a8ab19dmr929295eju.5.1699699355850; Sat, 11 Nov 2023 02:42:35 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-20-97-182.retail.telecomitalia.it. [79.20.97.182]) by smtp.gmail.com with ESMTPSA id ga33-20020a1709070c2100b0099e12a49c8fsm872183ejc.173.2023.11.11.02.42.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 02:42:35 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Fabio Estevam , Helge Deller , Martin Kaiser , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org Subject: [PATCH 00/10] Fix left margin setup and code cleanup Date: Sat, 11 Nov 2023 11:41:49 +0100 Message-ID: <20231111104225.136512-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OwrTbHHa; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This series was created with the intention of fixing the left margin setting. At the same time, I made some changes with the aim of making the code more readable, as well as removing the errors/warnings reported by checkpatch. Dario Binacchi (10): fbdev: imxfb: fix left margin setting fbdev: imxfb: move PCR bitfields near their offset fbdev: imxfb: use BIT, FIELD_{GET,PREP} and GENMASK macros fbdev: imxfb: replace some magic numbers with constants fbdev: imxfb: add missing SPDX tag fbdev: imxfb: drop ftrace-like logging fbdev: imxfb: add missing spaces after ',' fbdev: imxfb: Fix style warnings relating to printk() fbdev: imxfb: use __func__ for function name fbdev: imxfb: add '*/' on a separate line in block comment drivers/video/fbdev/imxfb.c | 179 ++++++++++++++++++++---------------- 1 file changed, 102 insertions(+), 77 deletions(-)