/* Function used to create subcommands with devices names.  */
static void device_name_get(size_t idx, struct shell_static_entry *entry)
/* Function used to create subcommands with devices names.  */
static void device_name_get(size_t idx, struct shell_static_entry *entry)
{
	const struct device *dev = shell_device_lookup(idx, NULL);
	entry->syntax = (dev != NULL) ? dev->name : NULL;
	entry->handler = NULL;
	entry->help = NULL;
	entry->subcmd = NULL;
}