mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Dhruva Gole <d-gole@ti.com>
Cc: Vignesh Raghavendra <vigneshr@ti.com>,
	Pratyush Yadav <ptyadav@amazon.de>,
	linux-spi@vger.kernel.org,
	Kunihiko Hayashi <hayashi.kunihiko@socionext.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] spi: spi-sn-f-ospi: fix white spaces and improve code formatting
Date: Mon, 27 Feb 2023 14:09:28 +0000	[thread overview]
Message-ID: <Y/y5mHklSYINwnA5@sirena.org.uk> (raw)
In-Reply-To: <20230223102918.985376-1-d-gole@ti.com>

[-- Attachment #1: Type: text/plain, Size: 1266 bytes --]

On Thu, Feb 23, 2023 at 03:59:18PM +0530, Dhruva Gole wrote:

> Fixes: 1b74dd64c861 ("spi: Add Socionext F_OSPI SPI flash controller driver")

This is clearly not a good fit for using Fixes.

> Allignment issues in all the macro definitions of this driver have been
> fixed for better asthetics

In what way?

> -#define OSPI_PROT_CTL_INDIR			0x00
> -#define   OSPI_PROT_MODE_DATA_MASK		GENMASK(31, 30)
> -#define   OSPI_PROT_MODE_ALT_MASK		GENMASK(29, 28)
> -#define   OSPI_PROT_MODE_ADDR_MASK		GENMASK(27, 26)
> -#define   OSPI_PROT_MODE_CODE_MASK		GENMASK(25, 24)
> -#define     OSPI_PROT_MODE_SINGLE		0
> -#define     OSPI_PROT_MODE_DUAL			1
> -#define     OSPI_PROT_MODE_QUAD			2
> -#define     OSPI_PROT_MODE_OCTAL		3

> +#define	OSPI_PROT_CTL_INDIR			0x00
> +#define	OSPI_PROT_MODE_DATA_MASK		GENMASK(31, 30)
> +#define	OSPI_PROT_MODE_ALT_MASK			GENMASK(29, 28)
> +#define	OSPI_PROT_MODE_ADDR_MASK		GENMASK(27, 26)
> +#define	OSPI_PROT_MODE_CODE_MASK		GENMASK(25, 24)
> +#define	OSPI_PROT_MODE_SINGLE			0
> +#define	OSPI_PROT_MODE_DUAL			1
> +#define	OSPI_PROT_MODE_QUAD			2
> +#define	OSPI_PROT_MODE_OCTAL			3

As far as I can tell this is just removing all the intentation which
differentiates register, field and value - that looks like a clear step
back?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2023-02-27 14:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-23 10:29 Dhruva Gole
2023-02-27 14:09 ` Mark Brown [this message]
     [not found]   ` <067ff1a3-a00a-9e19-9c6f-8d446915efe9@ti.com>
2023-03-01 18:21     ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y/y5mHklSYINwnA5@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=d-gole@ti.com \
    --cc=hayashi.kunihiko@socionext.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=ptyadav@amazon.de \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®