[PATCH][next] ASoC: codec: sma1307: replace spelling mistake with new error message

Colin Ian King posted 1 patch 4 months, 1 week ago
sound/soc/codecs/sma1307.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH][next] ASoC: codec: sma1307: replace spelling mistake with new error message
Posted by Colin Ian King 4 months, 1 week ago
There is a spelling mistake in a failure message, replace the
message with something a little more meaningful.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 sound/soc/codecs/sma1307.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/sma1307.c b/sound/soc/codecs/sma1307.c
index b3d401ada176..6a601e7134ea 100644
--- a/sound/soc/codecs/sma1307.c
+++ b/sound/soc/codecs/sma1307.c
@@ -1749,7 +1749,7 @@ static void sma1307_setting_loaded(struct sma1307_priv *sma1307, const char *fil
 	       sma1307->set.header_size * sizeof(int));
 
 	if ((sma1307->set.checksum >> 8) != SMA1307_SETTING_CHECKSUM) {
-		dev_err(sma1307->dev, "%s: failed by dismatch \"%s\"\n",
+		dev_err(sma1307->dev, "%s: checksum failed \"%s\"\n",
 			__func__, setting_file);
 		sma1307->set.status = false;
 		return;
-- 
2.50.1
Re: [PATCH][next] ASoC: codec: sma1307: replace spelling mistake with new error message
Posted by Mark Brown 4 months ago
On Fri, 08 Aug 2025 11:53:24 +0100, Colin Ian King wrote:
> There is a spelling mistake in a failure message, replace the
> message with something a little more meaningful.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: codec: sma1307: replace spelling mistake with new error message
      commit: 7cdadac0d2b3614d04651be7104a89a1998efec0

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
Re: [PATCH][next] ASoC: codec: sma1307: replace spelling mistake with new error message
Posted by Mark Brown 4 months, 1 week ago
On Fri, Aug 08, 2025 at 11:53:24AM +0100, Colin Ian King wrote:

> There is a spelling mistake in a failure message, replace the
> message with something a little more meaningful.

>  	if ((sma1307->set.checksum >> 8) != SMA1307_SETTING_CHECKSUM) {
> -		dev_err(sma1307->dev, "%s: failed by dismatch \"%s\"\n",
> +		dev_err(sma1307->dev, "%s: checksum failed \"%s\"\n",

It's definitely an unusual term and the reword makes sense but that does
make sense to me as a word, I don't think it's a spelling error as such.
Re: [PATCH][next] ASoC: codec: sma1307: replace spelling mistake with new error message
Posted by Colin King (gmail) 4 months, 1 week ago
On 08/08/2025 12:30, Mark Brown wrote:
> On Fri, Aug 08, 2025 at 11:53:24AM +0100, Colin Ian King wrote:
> 
>> There is a spelling mistake in a failure message, replace the
>> message with something a little more meaningful.
> 
>>   	if ((sma1307->set.checksum >> 8) != SMA1307_SETTING_CHECKSUM) {
>> -		dev_err(sma1307->dev, "%s: failed by dismatch \"%s\"\n",
>> +		dev_err(sma1307->dev, "%s: checksum failed \"%s\"\n",
> 
> It's definitely an unusual term and the reword makes sense but that does
> make sense to me as a word, I don't think it's a spelling error as such.

"Dismatch" is not a standard English word. It's likely a misspelling of 
"mismatch" or a neologism formed by adding the prefix "dis-" to "match". 
I understand it a niche term, I just think it is preferable not to use 
it for folk who's first language isn't English.

Colin
Re: [PATCH][next] ASoC: codec: sma1307: replace spelling mistake with new error message
Posted by Mark Brown 4 months, 1 week ago
On Fri, Aug 08, 2025 at 12:35:40PM +0100, Colin King (gmail) wrote:
> On 08/08/2025 12:30, Mark Brown wrote:
> > On Fri, Aug 08, 2025 at 11:53:24AM +0100, Colin Ian King wrote:

> > > -		dev_err(sma1307->dev, "%s: failed by dismatch \"%s\"\n",
> > > +		dev_err(sma1307->dev, "%s: checksum failed \"%s\"\n",

> > It's definitely an unusual term and the reword makes sense but that does
> > make sense to me as a word, I don't think it's a spelling error as such.

> "Dismatch" is not a standard English word. It's likely a misspelling of
> "mismatch" or a neologism formed by adding the prefix "dis-" to "match". I
> understand it a niche term, I just think it is preferable not to use it for
> folk who's first language isn't English.

My comment was specifically that it doesn't look like a spelling
mistake.