History

clk: Drop duplicate clk_register() documentation

clk_register() isn't the main way to register a clk anymore. Developers should use clk_hw_register() instead. Furthermore, this whole chunk of documentation duplicates what's in the C file, so let's just use that.

Stephen Boyd committed 7 years ago

Commit f14382d1 parent 73d4f941 file · +0 −11Browse files

Unified · Split

include/linux/clk-provider.h+0−11
@@ -751,17 +751,6 @@ struct clk_hw *clk_hw_register_gpio_mux(struct device *dev, const char *name, · 750 unmodified lines
751 unsigned long flags);751 unsigned long flags);
752void clk_hw_unregister_gpio_mux(struct clk_hw *hw);752void clk_hw_unregister_gpio_mux(struct clk_hw *hw);
753 753
754/**
755 * clk_register - allocate a new clock, register it and return an opaque cookie
756 * @dev: device that is registering this clock
757 * @hw: link to hardware-specific clock data
758 *
759 * clk_register is the primary interface for populating the clock tree with new
760 * clock nodes. It returns a pointer to the newly allocated struct clk which
761 * cannot be dereferenced by driver code but may be used in conjuction with the
762 * rest of the clock API. In the event of an error clk_register will return an
763 * error code; drivers must test for an error code after calling clk_register.
764 */
765struct clk *clk_register(struct device *dev, struct clk_hw *hw);754struct clk *clk_register(struct device *dev, struct clk_hw *hw);
766struct clk *devm_clk_register(struct device *dev, struct clk_hw *hw);755struct clk *devm_clk_register(struct device *dev, struct clk_hw *hw);
767 756

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t