/* Get a device structure from a devicetree node with alias eeprom-0  */
static const struct device* get_eeprom_device(void)
/* Get a device structure from a devicetree node with alias eeprom-0  */
static const struct device* get_eeprom_device(void)
{
	const struct device *const dev = DEVICE_DT_GET(DT_ALIAS(eeprom_0));
	if (!device_is_ready(dev)) {
		printk("\nError: Device \"%s\" is not ready; "
		       "check the driver initialization logs for errors.\n",
		       dev->name);
		return NULL;
	}
	printk("Found EEPROM device \"%s\"\n", dev->name);
	return dev;
}