/* set_attention_status - Turns the Amber LED for a slot on or off @hotplug_slot: slot to change LED on @status: LED control flag  */
static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status)
/* set_attention_status - Turns the Amber LED for a slot on or off @hotplug_slot: slot to change LED on @status: LED control flag  */
static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status)
{
	struct pci_func *slot_func;
	struct slot *slot = hotplug_slot->private;
	struct controller *ctrl = slot->ctrl;
	u8 bus;
	u8 devfn;
	u8 device;
	u8 function;
	dbg("%s - physical_slot = %s\n", __func__, slot_name(slot));
	if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1)
		return -ENODEV;
	device = devfn >> 3;
	function = devfn & 0x7;
	dbg("bus, dev, fn = %d, %d, %d\n", bus, device, function);
	slot_func = cpqhp_slot_find(bus, device, function);
	if (!slot_func)
		return -ENODEV;
	return cpqhp_set_attention_status(ctrl, slot_func, status);
}