/* * header file for ADAV80X parts * * Copyright 2011 Analog Devices Inc. * * Licensed under the GPL-2 or later. */ #ifndef _ADAV80X_H #define _ADAV80X_H #include struct device; extern const struct regmap_config adav80x_regmap_config; int adav80x_bus_probe(struct device *dev, struct regmap *regmap); enum adav80x_pll_src { ADAV80X_PLL_SRC_XIN, ADAV80X_PLL_SRC_XTAL, ADAV80X_PLL_SRC_MCLKI, }; enum adav80x_pll { ADAV80X_PLL1 = 0, ADAV80X_PLL2 = 1, }; enum adav80x_clk_src { ADAV80X_CLK_XIN = 0, ADAV80X_CLK_MCLKI = 1, ADAV80X_CLK_PLL1 = 2, ADAV80X_CLK_PLL2 = 3, ADAV80X_CLK_XTAL = 6, ADAV80X_CLK_SYSCLK1 = 6, ADAV80X_CLK_SYSCLK2 = 7, ADAV80X_CLK_SYSCLK3 = 8, }; #endif c='/cgit.png' alt='cgit logo'/> index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/drivers/input/rmi4
diff options
context:
space:
mode:
authorAndrew Duggan <aduggan@synaptics.com>2016-07-14 09:35:44 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-07-14 09:40:39 -0700
commit9624516db0f3ffcbd1ba1007775d068f54049773 (patch)
treeb676d77a5c13f372cda53cb4f05beee9362a9640 /drivers/input/rmi4
parent3e9161bfe0482f26efeaf584d5fd69398c69313c (diff)
Input: synaptics-rmi4 - use of_get_child_by_name() to fix refcount
Calling of_find_node_by_name() assumes that the caller has incremented the refcount of the of_node being passed in. Currently, the caller is not incrementing the refcount of the of_node which results in the node being prematurely freed when of_find_node_by_name() calls of_node_put() on it. Instead use of_get_child_by_name() which does not call put on the of_node. Signed-off-by: Andrew Duggan <aduggan@synaptics.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/rmi4')