mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
driver core patches for 4.13-rc1
Here is the big driver core update for 4.13-rc1. The large majority of this is a lot of cleanup of old fields in the driver core structures and their remaining usages in random drivers. All of those fixes have been reviewed by the various subsystem maintainers. There's also some small firmware updates in here, a new kobject uevent api interface that makes userspace interaction easier, and a few other minor things. All of these have been in linux-next for a long while with no reported issues. Signed-off-by: Greg Kroah-Hartman <[email protected]> -----BEGIN PGP SIGNATURE----- iG0EABECAC0WIQT0tgzFv3jCIUoxPcsxR9QN2y37KQUCWVpX4A8cZ3JlZ0Brcm9h aC5jb20ACgkQMUfUDdst+ymobgCfd0d13IfpZoq1N41wc6z2Z0xD7cwAnRMeH1/p kEeISGpHPYP9f8PBh9FO =Hfqt -----END PGP SIGNATURE----- Merge tag 'driver-core-4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core Pull driver core updates from Greg KH: "Here is the big driver core update for 4.13-rc1. The large majority of this is a lot of cleanup of old fields in the driver core structures and their remaining usages in random drivers. All of those fixes have been reviewed by the various subsystem maintainers. There's also some small firmware updates in here, a new kobject uevent api interface that makes userspace interaction easier, and a few other minor things. All of these have been in linux-next for a long while with no reported issues" * tag 'driver-core-4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (56 commits) arm: mach-rpc: ecard: fix build error zram: convert remaining CLASS_ATTR() to CLASS_ATTR_RO() driver-core: remove struct bus_type.dev_attrs powerpc: vio_cmo: use dev_groups and not dev_attrs for bus_type powerpc: vio: use dev_groups and not dev_attrs for bus_type USB: usbip: convert to use DRIVER_ATTR_RW s390: drivers: convert to use DRIVER_ATTR_RO/WO platform: thinkpad_acpi: convert to use DRIVER_ATTR_RO/RW pcmcia: ds: convert to use DRIVER_ATTR_RO wireless: ipw2x00: convert to use DRIVER_ATTR_RW net: ehea: convert to use DRIVER_ATTR_RO net: caif: convert to use DRIVER_ATTR_RO TTY: hvc: convert to use DRIVER_ATTR_RW PCI: pci-driver: convert to use DRIVER_ATTR_WO IB: nes: convert to use DRIVER_ATTR_RW HID: hid-core: convert to use DRIVER_ATTR_RO and drv_groups arm: ecard: fix dev_groups patch typo tty: serdev: use dev_groups and not dev_attrs for bus_type sparc: vio: use dev_groups and not dev_attrs for bus_type hid: intel-ish-hid: use dev_groups and not dev_attrs for bus_type ...
This commit is contained in:
commit
974668417b
64 changed files with 1116 additions and 1040 deletions
|
|
@ -1096,26 +1096,26 @@ static const struct dev_pm_ops sclp_pm_ops = {
|
|||
.restore = sclp_restore,
|
||||
};
|
||||
|
||||
static ssize_t sclp_show_console_pages(struct device_driver *dev, char *buf)
|
||||
static ssize_t con_pages_show(struct device_driver *dev, char *buf)
|
||||
{
|
||||
return sprintf(buf, "%i\n", sclp_console_pages);
|
||||
}
|
||||
|
||||
static DRIVER_ATTR(con_pages, S_IRUSR, sclp_show_console_pages, NULL);
|
||||
static DRIVER_ATTR_RO(con_pages);
|
||||
|
||||
static ssize_t sclp_show_con_drop(struct device_driver *dev, char *buf)
|
||||
static ssize_t con_drop_show(struct device_driver *dev, char *buf)
|
||||
{
|
||||
return sprintf(buf, "%i\n", sclp_console_drop);
|
||||
}
|
||||
|
||||
static DRIVER_ATTR(con_drop, S_IRUSR, sclp_show_con_drop, NULL);
|
||||
static DRIVER_ATTR_RO(con_drop);
|
||||
|
||||
static ssize_t sclp_show_console_full(struct device_driver *dev, char *buf)
|
||||
static ssize_t con_full_show(struct device_driver *dev, char *buf)
|
||||
{
|
||||
return sprintf(buf, "%lu\n", sclp_console_full);
|
||||
}
|
||||
|
||||
static DRIVER_ATTR(con_full, S_IRUSR, sclp_show_console_full, NULL);
|
||||
static DRIVER_ATTR_RO(con_full);
|
||||
|
||||
static struct attribute *sclp_drv_attrs[] = {
|
||||
&driver_attr_con_pages.attr,
|
||||
|
|
|
|||
|
|
@ -641,10 +641,8 @@ static ssize_t vmlogrdr_recording_store(struct device * dev,
|
|||
static DEVICE_ATTR(recording, 0200, NULL, vmlogrdr_recording_store);
|
||||
|
||||
|
||||
static ssize_t vmlogrdr_recording_status_show(struct device_driver *driver,
|
||||
char *buf)
|
||||
static ssize_t recording_status_show(struct device_driver *driver, char *buf)
|
||||
{
|
||||
|
||||
static const char cp_command[] = "QUERY RECORDING ";
|
||||
int len;
|
||||
|
||||
|
|
@ -652,8 +650,7 @@ static ssize_t vmlogrdr_recording_status_show(struct device_driver *driver,
|
|||
len = strlen(buf);
|
||||
return len;
|
||||
}
|
||||
static DRIVER_ATTR(recording_status, 0444, vmlogrdr_recording_status_show,
|
||||
NULL);
|
||||
static DRIVER_ATTR_RO(recording_status);
|
||||
static struct attribute *vmlogrdr_drv_attrs[] = {
|
||||
&driver_attr_recording_status.attr,
|
||||
NULL,
|
||||
|
|
|
|||
|
|
@ -1770,15 +1770,15 @@ static struct ccwgroup_driver ctcm_group_driver = {
|
|||
.restore = ctcm_pm_resume,
|
||||
};
|
||||
|
||||
static ssize_t ctcm_driver_group_store(struct device_driver *ddrv,
|
||||
const char *buf, size_t count)
|
||||
static ssize_t group_store(struct device_driver *ddrv, const char *buf,
|
||||
size_t count)
|
||||
{
|
||||
int err;
|
||||
|
||||
err = ccwgroup_create_dev(ctcm_root_dev, &ctcm_group_driver, 2, buf);
|
||||
return err ? err : count;
|
||||
}
|
||||
static DRIVER_ATTR(group, 0200, NULL, ctcm_driver_group_store);
|
||||
static DRIVER_ATTR_WO(group);
|
||||
|
||||
static struct attribute *ctcm_drv_attrs[] = {
|
||||
&driver_attr_group.attr,
|
||||
|
|
|
|||
|
|
@ -2411,14 +2411,14 @@ static struct ccwgroup_driver lcs_group_driver = {
|
|||
.restore = lcs_restore,
|
||||
};
|
||||
|
||||
static ssize_t lcs_driver_group_store(struct device_driver *ddrv,
|
||||
const char *buf, size_t count)
|
||||
static ssize_t group_store(struct device_driver *ddrv, const char *buf,
|
||||
size_t count)
|
||||
{
|
||||
int err;
|
||||
err = ccwgroup_create_dev(lcs_root_dev, &lcs_group_driver, 2, buf);
|
||||
return err ? err : count;
|
||||
}
|
||||
static DRIVER_ATTR(group, 0200, NULL, lcs_driver_group_store);
|
||||
static DRIVER_ATTR_WO(group);
|
||||
|
||||
static struct attribute *lcs_drv_attrs[] = {
|
||||
&driver_attr_group.attr,
|
||||
|
|
|
|||
|
|
@ -2020,8 +2020,8 @@ out_netdev:
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static ssize_t conn_write(struct device_driver *drv,
|
||||
const char *buf, size_t count)
|
||||
static ssize_t connection_store(struct device_driver *drv, const char *buf,
|
||||
size_t count)
|
||||
{
|
||||
char username[9];
|
||||
char userdata[17];
|
||||
|
|
@ -2082,11 +2082,10 @@ out_free_ndev:
|
|||
netiucv_free_netdevice(dev);
|
||||
return rc;
|
||||
}
|
||||
static DRIVER_ATTR_WO(connection);
|
||||
|
||||
static DRIVER_ATTR(connection, 0200, NULL, conn_write);
|
||||
|
||||
static ssize_t remove_write (struct device_driver *drv,
|
||||
const char *buf, size_t count)
|
||||
static ssize_t remove_store(struct device_driver *drv, const char *buf,
|
||||
size_t count)
|
||||
{
|
||||
struct iucv_connection *cp;
|
||||
struct net_device *ndev;
|
||||
|
|
@ -2132,8 +2131,7 @@ static ssize_t remove_write (struct device_driver *drv,
|
|||
IUCV_DBF_TEXT(data, 2, "remove_write: unknown device\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static DRIVER_ATTR(remove, 0200, NULL, remove_write);
|
||||
static DRIVER_ATTR_WO(remove);
|
||||
|
||||
static struct attribute * netiucv_drv_attrs[] = {
|
||||
&driver_attr_connection.attr,
|
||||
|
|
|
|||
|
|
@ -5800,8 +5800,8 @@ static struct ccwgroup_driver qeth_core_ccwgroup_driver = {
|
|||
.restore = qeth_core_restore,
|
||||
};
|
||||
|
||||
static ssize_t qeth_core_driver_group_store(struct device_driver *ddrv,
|
||||
const char *buf, size_t count)
|
||||
static ssize_t group_store(struct device_driver *ddrv, const char *buf,
|
||||
size_t count)
|
||||
{
|
||||
int err;
|
||||
|
||||
|
|
@ -5810,7 +5810,7 @@ static ssize_t qeth_core_driver_group_store(struct device_driver *ddrv,
|
|||
|
||||
return err ? err : count;
|
||||
}
|
||||
static DRIVER_ATTR(group, 0200, NULL, qeth_core_driver_group_store);
|
||||
static DRIVER_ATTR_WO(group);
|
||||
|
||||
static struct attribute *qeth_drv_attrs[] = {
|
||||
&driver_attr_group.attr,
|
||||
|
|
|
|||
Loading…
Reference in a new issue