drivers/clk/spear/clk.c

Source file repositories/reference/linux-study-clean/drivers/clk/spear/clk.c

File Facts

System
Linux kernel
Corpus path
drivers/clk/spear/clk.c
Extension
.c
Size
730 bytes
Lines
37
Domain
Driver Families
Bucket
drivers/clk
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 (drate < rate) {
			/* previous clock was best */
			if (*index) {
				rate = prev_rate;
				(*index)--;
			}
			break;
		}
	}

	if ((*index) == rtbl_cnt)
		(*index)--;

	return rate;
}

Annotation

Implementation Notes