You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
video: of: display_timing: Remove of_display_timings_exist() function
Since introduction of of_display_timings_exist() function in commit
cc3f414cf2 ("video: add of helper for display timings/videomode") it
didn't attract any users, and the function has no potential, because
of_get_display_timings() covers its functionality and does more.
Drop the unused exported function from the kernel.
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
committed by
Bartlomiej Zolnierkiewicz
parent
9cbaf4d969
commit
a2a348014a
@@ -244,23 +244,3 @@ dispfail:
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(of_get_display_timings);
|
EXPORT_SYMBOL_GPL(of_get_display_timings);
|
||||||
|
|
||||||
/**
|
|
||||||
* of_display_timings_exist - check if a display-timings node is provided
|
|
||||||
* @np: device_node with the timing
|
|
||||||
**/
|
|
||||||
int of_display_timings_exist(const struct device_node *np)
|
|
||||||
{
|
|
||||||
struct device_node *timings_np;
|
|
||||||
|
|
||||||
if (!np)
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
timings_np = of_parse_phandle(np, "display-timings", 0);
|
|
||||||
if (!timings_np)
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
of_node_put(timings_np);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL_GPL(of_display_timings_exist);
|
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ struct display_timings;
|
|||||||
int of_get_display_timing(const struct device_node *np, const char *name,
|
int of_get_display_timing(const struct device_node *np, const char *name,
|
||||||
struct display_timing *dt);
|
struct display_timing *dt);
|
||||||
struct display_timings *of_get_display_timings(const struct device_node *np);
|
struct display_timings *of_get_display_timings(const struct device_node *np);
|
||||||
int of_display_timings_exist(const struct device_node *np);
|
|
||||||
#else
|
#else
|
||||||
static inline int of_get_display_timing(const struct device_node *np,
|
static inline int of_get_display_timing(const struct device_node *np,
|
||||||
const char *name, struct display_timing *dt)
|
const char *name, struct display_timing *dt)
|
||||||
@@ -31,10 +30,6 @@ of_get_display_timings(const struct device_node *np)
|
|||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
static inline int of_display_timings_exist(const struct device_node *np)
|
|
||||||
{
|
|
||||||
return -ENOSYS;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user