aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-omap2-mcspi.c
diff options
context:
space:
mode:
authorMario Limonciello <mario_limonciello@dell.com>2014-07-24 00:19:23 -0400
committerMatthew Garrett <matthew.garrett@nebula.com>2014-08-16 04:23:55 -0400
commitfee4efd7d1372aa9ac2f6873167f02259cb143ef (patch)
treeba308ae0f34a8e677e9947bbeffe5efaf9079a31 /drivers/spi/spi-omap2-mcspi.c
parent49458e83082d6c68c6b7b8905789dc4f35eca422 (diff)
alienware-wmi: make hdmi_mux enabled on case-by-case basis
Not all HW supporting WMAX method will support the HDMI mux feature. Explicitly quirk the HW that does support it. Signed-off-by: Mario Limonciello <mario_limonciello@dell.com> Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'drivers/spi/spi-omap2-mcspi.c')
0 files changed, 0 insertions, 0 deletions
t">; /* PPS' clear event seq # */ struct pps_ktime assert_tu; struct pps_ktime clear_tu; int current_mode; /* PPS mode at event time */ unsigned int last_ev; /* last PPS event id */ wait_queue_head_t queue; /* PPS event queue */ unsigned int id; /* PPS source unique ID */ void const *lookup_cookie; /* pps_lookup_dev only */ struct cdev cdev; struct device *dev; struct fasync_struct *async_queue; /* fasync method */ spinlock_t lock; }; /* * Global variables */ extern struct device_attribute pps_attrs[]; /* * Internal functions. * * These are not actually part of the exported API, but this is a * convenient header file to put them in. */ extern int pps_register_cdev(struct pps_device *pps); extern void pps_unregister_cdev(struct pps_device *pps); /* * Exported functions */ extern struct pps_device *pps_register_source( struct pps_source_info *info, int default_params); extern void pps_unregister_source(struct pps_device *pps); extern void pps_event(struct pps_device *pps, struct pps_event_time *ts, int event, void *data); /* Look up a pps device by magic cookie */ struct pps_device *pps_lookup_dev(void const *cookie); static inline void timespec_to_pps_ktime(struct pps_ktime *kt, struct timespec ts) { kt->sec = ts.tv_sec; kt->nsec = ts.tv_nsec; } #ifdef CONFIG_NTP_PPS static inline void pps_get_ts(struct pps_event_time *ts) { getnstime_raw_and_real(&ts->ts_raw, &ts->ts_real); } #else /* CONFIG_NTP_PPS */ static inline void pps_get_ts(struct pps_event_time *ts) { getnstimeofday(&ts->ts_real); } #endif /* CONFIG_NTP_PPS */ /* Subtract known time delay from PPS event time(s) */ static inline void pps_sub_ts(struct pps_event_time *ts, struct timespec delta) { ts->ts_real = timespec_sub(ts->ts_real, delta); #ifdef CONFIG_NTP_PPS ts->ts_raw = timespec_sub(ts->ts_raw, delta); #endif } #endif /* LINUX_PPS_KERNEL_H */