sync with OpenBSD -current
This commit is contained in:
parent
ee68147dcd
commit
1cefe29c7e
1651 changed files with 283292 additions and 68089 deletions
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include <linux/device.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_device.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/slab.h>
|
||||
|
@ -64,9 +65,9 @@ static int mipi_dsi_device_match(struct device *dev, struct device_driver *drv)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int mipi_dsi_uevent(struct device *dev, struct kobj_uevent_env *env)
|
||||
static int mipi_dsi_uevent(const struct device *dev, struct kobj_uevent_env *env)
|
||||
{
|
||||
struct mipi_dsi_device *dsi = to_mipi_dsi_device(dev);
|
||||
const struct mipi_dsi_device *dsi = to_mipi_dsi_device(dev);
|
||||
int err;
|
||||
|
||||
err = of_device_uevent_modalias(dev, env);
|
||||
|
@ -162,7 +163,7 @@ of_mipi_dsi_device_add(struct mipi_dsi_host *host, struct device_node *node)
|
|||
int ret;
|
||||
u32 reg;
|
||||
|
||||
if (of_modalias_node(node, info.type, sizeof(info.type)) < 0) {
|
||||
if (of_alias_from_compatible(node, info.type, sizeof(info.type)) < 0) {
|
||||
drm_err(host, "modalias failure on %pOF\n", node);
|
||||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
|
@ -225,7 +226,7 @@ mipi_dsi_device_register_full(struct mipi_dsi_host *host,
|
|||
|
||||
device_set_node(&dsi->dev, of_fwnode_handle(info->node));
|
||||
dsi->channel = info->channel;
|
||||
strlcpy(dsi->name, info->type, sizeof(dsi->name));
|
||||
strscpy(dsi->name, info->type, sizeof(dsi->name));
|
||||
|
||||
ret = mipi_dsi_device_add(dsi);
|
||||
if (ret) {
|
||||
|
@ -335,7 +336,7 @@ int mipi_dsi_host_register(struct mipi_dsi_host *host)
|
|||
|
||||
for_each_available_child_of_node(host->dev->of_node, node) {
|
||||
/* skip nodes without reg property */
|
||||
if (!of_find_property(node, "reg", NULL))
|
||||
if (!of_property_present(node, "reg"))
|
||||
continue;
|
||||
of_mipi_dsi_device_add(host, node);
|
||||
}
|
||||
|
@ -618,7 +619,7 @@ int mipi_dsi_turn_on_peripheral(struct mipi_dsi_device *dsi)
|
|||
EXPORT_SYMBOL(mipi_dsi_turn_on_peripheral);
|
||||
|
||||
/*
|
||||
* mipi_dsi_set_maximum_return_packet_size() - specify the maximum size of the
|
||||
* mipi_dsi_set_maximum_return_packet_size() - specify the maximum size of
|
||||
* the payload in a long packet transmitted from the peripheral back to the
|
||||
* host processor
|
||||
* @dsi: DSI peripheral device
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue