@@ -107,8 +107,7 @@ struct intel_community_context {
107
107
#define pin_to_padno (c , p ) ((p) - (c)->pin_base)
108
108
#define padgroup_offset (g , p ) ((p) - (g)->base)
109
109
110
- static struct intel_community * intel_get_community (struct intel_pinctrl * pctrl ,
111
- unsigned int pin )
110
+ struct intel_community * intel_get_community (struct intel_pinctrl * pctrl , unsigned int pin )
112
111
{
113
112
struct intel_community * community ;
114
113
int i ;
@@ -123,6 +122,7 @@ static struct intel_community *intel_get_community(struct intel_pinctrl *pctrl,
123
122
dev_warn (pctrl -> dev , "failed to find community for pin %u\n" , pin );
124
123
return NULL ;
125
124
}
125
+ EXPORT_SYMBOL_NS_GPL (intel_get_community , PINCTRL_INTEL );
126
126
127
127
static const struct intel_padgroup *
128
128
intel_community_get_padgroup (const struct intel_community * community ,
@@ -276,30 +276,32 @@ static bool intel_pad_usable(struct intel_pinctrl *pctrl, unsigned int pin)
276
276
return intel_pad_owned_by_host (pctrl , pin ) && intel_pad_is_unlocked (pctrl , pin );
277
277
}
278
278
279
- static int intel_get_groups_count (struct pinctrl_dev * pctldev )
279
+ int intel_get_groups_count (struct pinctrl_dev * pctldev )
280
280
{
281
281
struct intel_pinctrl * pctrl = pinctrl_dev_get_drvdata (pctldev );
282
282
283
283
return pctrl -> soc -> ngroups ;
284
284
}
285
+ EXPORT_SYMBOL_NS_GPL (intel_get_groups_count , PINCTRL_INTEL );
285
286
286
- static const char * intel_get_group_name (struct pinctrl_dev * pctldev ,
287
- unsigned int group )
287
+ const char * intel_get_group_name (struct pinctrl_dev * pctldev , unsigned int group )
288
288
{
289
289
struct intel_pinctrl * pctrl = pinctrl_dev_get_drvdata (pctldev );
290
290
291
291
return pctrl -> soc -> groups [group ].grp .name ;
292
292
}
293
+ EXPORT_SYMBOL_NS_GPL (intel_get_group_name , PINCTRL_INTEL );
293
294
294
- static int intel_get_group_pins (struct pinctrl_dev * pctldev , unsigned int group ,
295
- const unsigned int * * pins , unsigned int * npins )
295
+ int intel_get_group_pins (struct pinctrl_dev * pctldev , unsigned int group ,
296
+ const unsigned int * * pins , unsigned int * npins )
296
297
{
297
298
struct intel_pinctrl * pctrl = pinctrl_dev_get_drvdata (pctldev );
298
299
299
300
* pins = pctrl -> soc -> groups [group ].grp .pins ;
300
301
* npins = pctrl -> soc -> groups [group ].grp .npins ;
301
302
return 0 ;
302
303
}
304
+ EXPORT_SYMBOL_NS_GPL (intel_get_group_pins , PINCTRL_INTEL );
303
305
304
306
static void intel_pin_dbg_show (struct pinctrl_dev * pctldev , struct seq_file * s ,
305
307
unsigned int pin )
@@ -359,32 +361,32 @@ static const struct pinctrl_ops intel_pinctrl_ops = {
359
361
.pin_dbg_show = intel_pin_dbg_show ,
360
362
};
361
363
362
- static int intel_get_functions_count (struct pinctrl_dev * pctldev )
364
+ int intel_get_functions_count (struct pinctrl_dev * pctldev )
363
365
{
364
366
struct intel_pinctrl * pctrl = pinctrl_dev_get_drvdata (pctldev );
365
367
366
368
return pctrl -> soc -> nfunctions ;
367
369
}
370
+ EXPORT_SYMBOL_NS_GPL (intel_get_functions_count , PINCTRL_INTEL );
368
371
369
- static const char * intel_get_function_name (struct pinctrl_dev * pctldev ,
370
- unsigned int function )
372
+ const char * intel_get_function_name (struct pinctrl_dev * pctldev , unsigned int function )
371
373
{
372
374
struct intel_pinctrl * pctrl = pinctrl_dev_get_drvdata (pctldev );
373
375
374
376
return pctrl -> soc -> functions [function ].func .name ;
375
377
}
378
+ EXPORT_SYMBOL_NS_GPL (intel_get_function_name , PINCTRL_INTEL );
376
379
377
- static int intel_get_function_groups (struct pinctrl_dev * pctldev ,
378
- unsigned int function ,
379
- const char * const * * groups ,
380
- unsigned int * const ngroups )
380
+ int intel_get_function_groups (struct pinctrl_dev * pctldev , unsigned int function ,
381
+ const char * const * * groups , unsigned int * const ngroups )
381
382
{
382
383
struct intel_pinctrl * pctrl = pinctrl_dev_get_drvdata (pctldev );
383
384
384
385
* groups = pctrl -> soc -> functions [function ].func .groups ;
385
386
* ngroups = pctrl -> soc -> functions [function ].func .ngroups ;
386
387
return 0 ;
387
388
}
389
+ EXPORT_SYMBOL_NS_GPL (intel_get_function_groups , PINCTRL_INTEL );
388
390
389
391
static int intel_pinmux_set_mux (struct pinctrl_dev * pctldev ,
390
392
unsigned int function , unsigned int group )
0 commit comments