mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-05 05:07:47 -04:00
Merge tag 'char-misc-7.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc/IIO driver updates from Greg KH: "Here is the big set of char/misc/iio and other smaller driver subsystem changes for 7.0-rc1. Lots of little things in here, including: - Loads of iio driver changes and updates and additions - gpib driver updates - interconnect driver updates - i3c driver updates - hwtracing (coresight and intel) driver updates - deletion of the obsolete mwave driver - binder driver updates (rust and c versions) - mhi driver updates (causing a merge conflict, see below) - mei driver updates - fsi driver updates - eeprom driver updates - lots of other small char and misc driver updates and cleanups All of these have been in linux-next for a while, with no reported issues" * tag 'char-misc-7.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (297 commits) mux: mmio: fix regmap leak on probe failure rust_binder: return p from rust_binder_transaction_target_node() drivers: android: binder: Update ARef imports from sync::aref rust_binder: fix needless borrow in context.rs iio: magn: mmc5633: Fix Kconfig for combination of I3C as module and driver builtin iio: sca3000: Fix a resource leak in sca3000_probe() iio: proximity: rfd77402: Add interrupt handling support iio: proximity: rfd77402: Document device private data structure iio: proximity: rfd77402: Use devm-managed mutex initialization iio: proximity: rfd77402: Use kernel helper for result polling iio: proximity: rfd77402: Align polling timeout with datasheet iio: cros_ec: Allow enabling/disabling calibration mode iio: frequency: ad9523: correct kernel-doc bad line warning iio: buffer: buffer_impl.h: fix kernel-doc warnings iio: gyro: itg3200: Fix unchecked return value in read_raw MAINTAINERS: add entry for ADE9000 driver iio: accel: sca3000: remove unused last_timestamp field iio: accel: adxl372: remove unused int2_bitmask field iio: adc: ad7766: Use iio_trigger_generic_data_rdy_poll() iio: magnetometer: Remove IRQF_ONESHOT ...
This commit is contained in:
@@ -674,8 +674,9 @@ static struct device_node *fsi_i2c_find_port_of_node(struct device_node *fsi,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static int fsi_i2c_probe(struct device *dev)
|
||||
static int fsi_i2c_probe(struct fsi_device *fsi_dev)
|
||||
{
|
||||
struct device *dev = &fsi_dev->dev;
|
||||
struct fsi_i2c_ctrl *i2c;
|
||||
struct fsi_i2c_port *port;
|
||||
struct device_node *np;
|
||||
@@ -735,14 +736,14 @@ static int fsi_i2c_probe(struct device *dev)
|
||||
list_add(&port->list, &i2c->ports);
|
||||
}
|
||||
|
||||
dev_set_drvdata(dev, i2c);
|
||||
fsi_set_drvdata(fsi_dev, i2c);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int fsi_i2c_remove(struct device *dev)
|
||||
static void fsi_i2c_remove(struct fsi_device *fsi_dev)
|
||||
{
|
||||
struct fsi_i2c_ctrl *i2c = dev_get_drvdata(dev);
|
||||
struct fsi_i2c_ctrl *i2c = fsi_get_drvdata(fsi_dev);
|
||||
struct fsi_i2c_port *port, *tmp;
|
||||
|
||||
list_for_each_entry_safe(port, tmp, &i2c->ports, list) {
|
||||
@@ -750,8 +751,6 @@ static int fsi_i2c_remove(struct device *dev)
|
||||
i2c_del_adapter(&port->adapter);
|
||||
kfree(port);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct fsi_device_id fsi_i2c_ids[] = {
|
||||
@@ -761,11 +760,10 @@ static const struct fsi_device_id fsi_i2c_ids[] = {
|
||||
|
||||
static struct fsi_driver fsi_i2c_driver = {
|
||||
.id_table = fsi_i2c_ids,
|
||||
.probe = fsi_i2c_probe,
|
||||
.remove = fsi_i2c_remove,
|
||||
.drv = {
|
||||
.name = "i2c-fsi",
|
||||
.bus = &fsi_bus_type,
|
||||
.probe = fsi_i2c_probe,
|
||||
.remove = fsi_i2c_remove,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user