History

mfd: Remove unused helper syscon_regmap_lookup_by_pdevname

Nobody uses the exported helper syscon_regmap_lookup_by_pdevname, to lookup a device by name. Let us remove it.

Suzuki K Poulose committed 7 years ago

Commit 29d14b61 parent 209de312 files · +0 −27Browse files

Unified · Split

2 files
  1. drivers/mfd/syscon.c +0 −21
  2. include/linux/mfd/syscon.h +0 −6
drivers/mfd/syscon.c+0−21
@@ -190,27 +190,6 @@ struct regmap *syscon_regmap_lookup_by_compatible(const char *s) · 189 unmodified lines
190190 }
191191 EXPORT_SYMBOL_GPL(syscon_regmap_lookup_by_compatible);
192192
193−static int syscon_match_pdevname(struct device *dev, void *data)
194−{
195− return !strcmp(dev_name(dev), (const char *)data);
196−}
197−
198−struct regmap *syscon_regmap_lookup_by_pdevname(const char *s)
199−{
200− struct device *dev;
201− struct syscon *syscon;
202−
203− dev = driver_find_device(&syscon_driver.driver, NULL, (void *)s,
204− syscon_match_pdevname);
205− if (!dev)
206− return ERR_PTR(-EPROBE_DEFER);
207−
208− syscon = dev_get_drvdata(dev);
209−
210− return syscon->regmap;
211−}
212−EXPORT_SYMBOL_GPL(syscon_regmap_lookup_by_pdevname);
213−
214193 struct regmap *syscon_regmap_lookup_by_phandle(struct device_node *np,
215194 const char *property)
216195 {
include/linux/mfd/syscon.h+0−6
@@ -19,7 +19,6 @@ struct device_node; · 18 unmodified lines
1919 #ifdef CONFIG_MFD_SYSCON
2020 extern struct regmap *syscon_node_to_regmap(struct device_node *np);
2121 extern struct regmap *syscon_regmap_lookup_by_compatible(const char *s);
22−extern struct regmap *syscon_regmap_lookup_by_pdevname(const char *s);
2322 extern struct regmap *syscon_regmap_lookup_by_phandle(
2423 struct device_node *np,
2524 const char *property);
@@ -34,11 +33,6 @@ static inline struct regmap *syscon_regmap_lookup_by_compatible(const char *s) · 8 unmodified lines
3433 return ERR_PTR(-ENOTSUPP);
3534 }
3635
37−static inline struct regmap *syscon_regmap_lookup_by_pdevname(const char *s)
38−{
39− return ERR_PTR(-ENOTSUPP);
40−}
41−
4236 static inline struct regmap *syscon_regmap_lookup_by_phandle(
4337 struct device_node *np,
4438 const char *property)

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