Commit 993e2194 authored by Wolfram Sang's avatar Wolfram Sang
Browse files

Merge tag 'at24-v5.5-updates-for-wolfram' of...

Merge tag 'at24-v5.5-updates-for-wolfram' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux into i2c/for-5.5

at24: updates for v5.5

- print a proper log message for read-only EEPROMs
parents 7be5f90f 285be87c
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -716,9 +716,12 @@ static int at24_probe(struct i2c_client *client)
		return -ENODEV;
	}

	dev_info(dev, "%u byte %s EEPROM, %s, %u bytes/write\n",
		 byte_len, client->name,
		 writable ? "writable" : "read-only", at24->write_max);
	if (writable)
		dev_info(dev, "%u byte %s EEPROM, writable, %u bytes/write\n",
			 byte_len, client->name, at24->write_max);
	else
		dev_info(dev, "%u byte %s EEPROM, read-only\n",
			 byte_len, client->name);

	return 0;
}