drivers/net/dsa/realtek/rtl8366rb-leds.c

Source file repositories/reference/linux-study-clean/drivers/net/dsa/realtek/rtl8366rb-leds.c

File Facts

System
Linux kernel
Corpus path
drivers/net/dsa/realtek/rtl8366rb-leds.c
Extension
.c
Size
4186 bytes
Lines
178
Domain
Driver Families
Bucket
drivers/net
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

if (!leds_np) {
			dev_dbg(priv->dev, "No leds defined for port %d",
				dp->index);
			continue;
		}

		for_each_child_of_node_scoped(leds_np, led_np) {
			ret = rtl8366rb_setup_led(priv, dp,
						  of_fwnode_handle(led_np));
			if (ret)
				break;
		}

		of_node_put(leds_np);
		if (ret)
			return ret;
	}
	return 0;
}

Annotation

Implementation Notes