History

mfd / platform: cros_ec: Use devm_mfd_add_devices

Use devm_mfd_add_devices() for adding cros-ec core MFD child devices. This reduces the need of remove callback from platform/chrome for removing the MFD child devices.

Enric Balletbo i Serra committed 7 years ago

Commit 4bc59c21 parent 49a57855 files · +3 −46Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/mfd/cros_ec.h+0−10
@@ -281,16 +281,6 @@ int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev, · 280 unmodified lines
281281 int cros_ec_cmd_xfer_status(struct cros_ec_device *ec_dev,
282282 struct cros_ec_command *msg);
283283
284−/**
285− * cros_ec_remove() - Remove a ChromeOS EC.
286− * @ec_dev: Device to register.
287− *
288− * Call this to deregister a ChromeOS EC, then clean up any private data.
289− *
290− * Return: 0 on success or negative error code.
291− */
292−int cros_ec_remove(struct cros_ec_device *ec_dev);
293−
294284 /**
295285 * cros_ec_register() - Register a new ChromeOS EC, using the provided info.
296286 * @ec_dev: Device to register.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t