summaryrefslogtreecommitdiffstats
path: root/ui/common
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-04-12 15:11:38 +0000
committerJeremy Kerr <jk@ozlabs.org>2009-06-30 15:29:00 +0800
commit6fd6d956ae55e755e2116d86942c62767df033de (patch)
treeca85c2ac708443b1daadfa9dbb2ad1b6dfd5cc2b /ui/common
parente058e90117300125af7b6e93eb0e5aeb23543af9 (diff)
downloadtalos-petitboot-6fd6d956ae55e755e2116d86942c62767df033de.tar.gz
talos-petitboot-6fd6d956ae55e755e2116d86942c62767df033de.zip
Revert const device in discover_client_ops
Make the device structure passed to the discover_client_ops callbacks writable. Commit 2b42cdd35ccd83c52e9df257efdfcda040d170d9 (Make client ops constant) changed the discover_client_ops callback routine arguments to be pointers to const device structures. Typically, the callback routines will initialize and destroy the device.ui_info and boot_option.info variables, so the device instance must be writable by the callback routines. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/common')
-rw-r--r--ui/common/discover-client.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/common/discover-client.h b/ui/common/discover-client.h
index d2a8fc4..f9f74e5 100644
--- a/ui/common/discover-client.h
+++ b/ui/common/discover-client.h
@@ -13,8 +13,8 @@ struct discover_client;
*/
struct discover_client_ops {
- int (*device_add)(const struct device *device, void *arg);
- void (*device_remove)(const struct device *device, void *arg);
+ int (*device_add)(struct device *device, void *arg);
+ void (*device_remove)(struct device *device, void *arg);
void *cb_arg;
};
OpenPOWER on IntegriCloud