mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-17 22:23:45 -04:00
cc2520: move to gpio descriptors
cc2520 supports both probing from static platform_data and from devicetree, but there have never been any definitions of the platform data in the mainline kernel, so it's safe to assume that only the DT path is used. After folding cc2520_platform_data into the driver itself, the GPIO handling can be simplified by moving to the modern gpiod interface. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20230126161658.2983292-1-arnd@kernel.org Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
This commit is contained in:
committed by
Stefan Schmidt
parent
8338304c27
commit
6755dee834
@@ -1,21 +0,0 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
/* Header file for cc2520 radio driver
|
||||
*
|
||||
* Copyright (C) 2014 Varka Bhadram <varkab@cdac.in>
|
||||
* Md.Jamal Mohiuddin <mjmohiuddin@cdac.in>
|
||||
* P Sowjanya <sowjanyap@cdac.in>
|
||||
*/
|
||||
|
||||
#ifndef __CC2520_H
|
||||
#define __CC2520_H
|
||||
|
||||
struct cc2520_platform_data {
|
||||
int fifo;
|
||||
int fifop;
|
||||
int cca;
|
||||
int sfd;
|
||||
int reset;
|
||||
int vreg;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user