iio: adf4350: Convert to use GPIO descriptor
The lock detect GPIO line is better to grab using a GPIO descriptor. We drop the pdata for this: clients using board files can use machine descriptor tables to pass this GPIO from static data. Cc: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:

committed by
Jonathan Cameron

parent
dcfb6dbdfb
commit
4a89d2f47c
@@ -103,9 +103,6 @@
|
||||
* @r2_user_settings: User defined settings for ADF4350/1 REGISTER_2.
|
||||
* @r3_user_settings: User defined settings for ADF4350/1 REGISTER_3.
|
||||
* @r4_user_settings: User defined settings for ADF4350/1 REGISTER_4.
|
||||
* @gpio_lock_detect: Optional, if set with a valid GPIO number,
|
||||
* pll lock state is tested upon read.
|
||||
* If not used - set to -1.
|
||||
*/
|
||||
|
||||
struct adf4350_platform_data {
|
||||
@@ -121,7 +118,6 @@ struct adf4350_platform_data {
|
||||
unsigned r2_user_settings;
|
||||
unsigned r3_user_settings;
|
||||
unsigned r4_user_settings;
|
||||
int gpio_lock_detect;
|
||||
};
|
||||
|
||||
#endif /* IIO_PLL_ADF4350_H_ */
|
||||
|
Reference in New Issue
Block a user