Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm/i915 Use `static inl...
details: https://anonhg.NetBSD.org/src/rev/cc09a9f0e091
branches: riastradh-drm2
changeset: 788304:cc09a9f0e091
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 03:09:42 2013 +0000
description:
Use `static inline', not `extern inline', in i915_drv.h.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_drv.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diffs (27 lines):
diff -r f3f26b7eef60 -r cc09a9f0e091 sys/external/bsd/drm2/dist/drm/i915/i915_drv.h
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_drv.h Wed Jul 24 03:09:26 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_drv.h Wed Jul 24 03:09:42 2013 +0000
@@ -1640,7 +1640,11 @@
/* intel_i2c.c */
extern int intel_setup_gmbus(struct drm_device *dev);
extern void intel_teardown_gmbus(struct drm_device *dev);
+#ifdef __NetBSD__
+static inline bool intel_gmbus_is_port_valid(unsigned port)
+#else
extern inline bool intel_gmbus_is_port_valid(unsigned port)
+#endif
{
return (port >= GMBUS_PORT_SSC && port <= GMBUS_PORT_DPD);
}
@@ -1649,7 +1653,11 @@
struct drm_i915_private *dev_priv, unsigned port);
extern void intel_gmbus_set_speed(struct i2c_adapter *adapter, int speed);
extern void intel_gmbus_force_bit(struct i2c_adapter *adapter, bool force_bit);
+#ifdef __NetBSD__
+static inline bool intel_gmbus_is_forced_bit(struct i2c_adapter *adapter)
+#else
extern inline bool intel_gmbus_is_forced_bit(struct i2c_adapter *adapter)
+#endif
{
return container_of(adapter, struct intel_gmbus, adapter)->force_bit;
}
Home |
Main Index |
Thread Index |
Old Index