// SPDX-License-Identifier: GPL-2.0 /* * Greybus bundles * * Copyright 2014 Google Inc. * Copyright 2014 Linaro Ltd. */ #ifndef __BUNDLE_H #define __BUNDLE_H #include <linux/list.h> #define BUNDLE_ID_NONE U8_MAX /* Greybus "public" definitions" */ struct gb_bundle { struct device dev; struct gb_interface *intf; u8 id; u8 class; u8 class_major; u8 class_minor; size_t num_cports; struct greybus_descriptor_cport *cport_desc; struct list_head connections; u8 *state; struct list_head links; /* interface->bundles */ }; #define to_gb_bundle(d) container_of(d, struct gb_bundle, dev) /* Greybus "private" definitions" */ struct gb_bundle *gb_bundle_create(struct gb_interface *intf, u8 bundle_id, u8 class); int gb_bundle_add(struct gb_bundle *bundle); void gb_bundle_destroy(struct gb_bundle *bundle); /* Bundle Runtime PM wrappers */ #ifdef CONFIG_PM
static inline int gb_pm_runtime_get_sync(struct gb_bundle *bundle) { int retval; retval = pm_runtime_get_sync(&bundle->dev); if (retval < 0) { dev_err(&bundle->dev, "pm_runtime_get_sync failed: %d\n", retval); pm_runtime_put_noidle(&bundle->dev); return retval; } return 0; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Lin | 59 | 100.00% | 1 | 100.00% |
Total | 59 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Lin | 36 | 100.00% | 1 | 100.00% |
Total | 36 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Lin | 20 | 100.00% | 1 | 100.00% |
Total | 20 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Lin | 20 | 100.00% | 1 | 100.00% |
Total | 20 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Lin | 15 | 100.00% | 1 | 100.00% |
Total | 15 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Lin | 15 | 100.00% | 1 | 100.00% |
Total | 15 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Lin | 11 | 100.00% | 1 | 100.00% |
Total | 11 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Lin | 11 | 100.00% | 1 | 100.00% |
Total | 11 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Lin | 194 | 63.82% | 1 | 5.26% |
Alex Elder | 48 | 15.79% | 6 | 31.58% |
Greg Kroah-Hartman | 32 | 10.53% | 7 | 36.84% |
Johan Hovold | 23 | 7.57% | 3 | 15.79% |
Viresh Kumar | 7 | 2.30% | 2 | 10.53% |
Total | 304 | 100.00% | 19 | 100.00% |