diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 09:04:38 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 09:04:38 -0400 |
| commit | 54e514b91b95d6441c12a7955addfb9f9d2afc65 (patch) | |
| tree | 8b73d901bd2a6ec5a31f34a8954e5ea92216dd6c /drivers/media | |
| parent | 4fc8adcfec3da639da76e8314c9ccefe5bf9a045 (diff) | |
| parent | 6c8c90319c0bb1c9e0b68e721359b89ae4f28465 (diff) | |
Merge branch 'akpm' (patches from Andrew)
Merge third patchbomb from Andrew Morton:
- various misc things
- a couple of lib/ optimisations
- provide DIV_ROUND_CLOSEST_ULL()
- checkpatch updates
- rtc tree
- befs, nilfs2, hfs, hfsplus, fatfs, adfs, affs, bfs
- ptrace fixes
- fork() fixes
- seccomp cleanups
- more mmap_sem hold time reductions from Davidlohr
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (138 commits)
proc: show locks in /proc/pid/fdinfo/X
docs: add missing and new /proc/PID/status file entries, fix typos
drivers/rtc/rtc-at91rm9200.c: make IO endian agnostic
Documentation/spi/spidev_test.c: fix warning
drivers/rtc/rtc-s5m.c: allow usage on device type different than main MFD type
.gitignore: ignore *.tar
MAINTAINERS: add Mediatek SoC mailing list
tomoyo: reduce mmap_sem hold for mm->exe_file
powerpc/oprofile: reduce mmap_sem hold for exe_file
oprofile: reduce mmap_sem hold for mm->exe_file
mips: ip32: add platform data hooks to use DS1685 driver
lib/Kconfig: fix up HAVE_ARCH_BITREVERSE help text
x86: switch to using asm-generic for seccomp.h
sparc: switch to using asm-generic for seccomp.h
powerpc: switch to using asm-generic for seccomp.h
parisc: switch to using asm-generic for seccomp.h
mips: switch to using asm-generic for seccomp.h
microblaze: use asm-generic for seccomp.h
arm: use asm-generic for seccomp.h
seccomp: allow COMPAT sigreturn overrides
...
Diffstat (limited to 'drivers/media')
| -rw-r--r-- | drivers/media/dvb-frontends/cxd2820r_c.c | 2 | ||||
| -rw-r--r-- | drivers/media/dvb-frontends/cxd2820r_core.c | 6 | ||||
| -rw-r--r-- | drivers/media/dvb-frontends/cxd2820r_priv.h | 2 | ||||
| -rw-r--r-- | drivers/media/dvb-frontends/cxd2820r_t.c | 2 | ||||
| -rw-r--r-- | drivers/media/dvb-frontends/cxd2820r_t2.c | 2 |
5 files changed, 3 insertions, 11 deletions
diff --git a/drivers/media/dvb-frontends/cxd2820r_c.c b/drivers/media/dvb-frontends/cxd2820r_c.c index 149fdca3fb44..72b0e2db3aab 100644 --- a/drivers/media/dvb-frontends/cxd2820r_c.c +++ b/drivers/media/dvb-frontends/cxd2820r_c.c | |||
| @@ -79,7 +79,7 @@ int cxd2820r_set_frontend_c(struct dvb_frontend *fe) | |||
| 79 | 79 | ||
| 80 | num = if_freq / 1000; /* Hz => kHz */ | 80 | num = if_freq / 1000; /* Hz => kHz */ |
| 81 | num *= 0x4000; | 81 | num *= 0x4000; |
| 82 | if_ctl = 0x4000 - cxd2820r_div_u64_round_closest(num, 41000); | 82 | if_ctl = 0x4000 - DIV_ROUND_CLOSEST_ULL(num, 41000); |
| 83 | buf[0] = (if_ctl >> 8) & 0x3f; | 83 | buf[0] = (if_ctl >> 8) & 0x3f; |
| 84 | buf[1] = (if_ctl >> 0) & 0xff; | 84 | buf[1] = (if_ctl >> 0) & 0xff; |
| 85 | 85 | ||
diff --git a/drivers/media/dvb-frontends/cxd2820r_core.c b/drivers/media/dvb-frontends/cxd2820r_core.c index 422e84bbb008..490e090048ef 100644 --- a/drivers/media/dvb-frontends/cxd2820r_core.c +++ b/drivers/media/dvb-frontends/cxd2820r_core.c | |||
| @@ -244,12 +244,6 @@ error: | |||
| 244 | return ret; | 244 | return ret; |
| 245 | } | 245 | } |
| 246 | 246 | ||
| 247 | /* 64 bit div with round closest, like DIV_ROUND_CLOSEST but 64 bit */ | ||
| 248 | u32 cxd2820r_div_u64_round_closest(u64 dividend, u32 divisor) | ||
| 249 | { | ||
| 250 | return div_u64(dividend + (divisor / 2), divisor); | ||
| 251 | } | ||
| 252 | |||
| 253 | static int cxd2820r_set_frontend(struct dvb_frontend *fe) | 247 | static int cxd2820r_set_frontend(struct dvb_frontend *fe) |
| 254 | { | 248 | { |
| 255 | struct cxd2820r_priv *priv = fe->demodulator_priv; | 249 | struct cxd2820r_priv *priv = fe->demodulator_priv; |
diff --git a/drivers/media/dvb-frontends/cxd2820r_priv.h b/drivers/media/dvb-frontends/cxd2820r_priv.h index 7ff5f60c83e1..4b428959b16e 100644 --- a/drivers/media/dvb-frontends/cxd2820r_priv.h +++ b/drivers/media/dvb-frontends/cxd2820r_priv.h | |||
| @@ -64,8 +64,6 @@ int cxd2820r_wr_reg_mask(struct cxd2820r_priv *priv, u32 reg, u8 val, | |||
| 64 | int cxd2820r_wr_regs(struct cxd2820r_priv *priv, u32 reginfo, u8 *val, | 64 | int cxd2820r_wr_regs(struct cxd2820r_priv *priv, u32 reginfo, u8 *val, |
| 65 | int len); | 65 | int len); |
| 66 | 66 | ||
| 67 | u32 cxd2820r_div_u64_round_closest(u64 dividend, u32 divisor); | ||
| 68 | |||
| 69 | int cxd2820r_wr_regs(struct cxd2820r_priv *priv, u32 reginfo, u8 *val, | 67 | int cxd2820r_wr_regs(struct cxd2820r_priv *priv, u32 reginfo, u8 *val, |
| 70 | int len); | 68 | int len); |
| 71 | 69 | ||
diff --git a/drivers/media/dvb-frontends/cxd2820r_t.c b/drivers/media/dvb-frontends/cxd2820r_t.c index 51401d036530..008cb2ac8480 100644 --- a/drivers/media/dvb-frontends/cxd2820r_t.c +++ b/drivers/media/dvb-frontends/cxd2820r_t.c | |||
| @@ -103,7 +103,7 @@ int cxd2820r_set_frontend_t(struct dvb_frontend *fe) | |||
| 103 | 103 | ||
| 104 | num = if_freq / 1000; /* Hz => kHz */ | 104 | num = if_freq / 1000; /* Hz => kHz */ |
| 105 | num *= 0x1000000; | 105 | num *= 0x1000000; |
| 106 | if_ctl = cxd2820r_div_u64_round_closest(num, 41000); | 106 | if_ctl = DIV_ROUND_CLOSEST_ULL(num, 41000); |
| 107 | buf[0] = ((if_ctl >> 16) & 0xff); | 107 | buf[0] = ((if_ctl >> 16) & 0xff); |
| 108 | buf[1] = ((if_ctl >> 8) & 0xff); | 108 | buf[1] = ((if_ctl >> 8) & 0xff); |
| 109 | buf[2] = ((if_ctl >> 0) & 0xff); | 109 | buf[2] = ((if_ctl >> 0) & 0xff); |
diff --git a/drivers/media/dvb-frontends/cxd2820r_t2.c b/drivers/media/dvb-frontends/cxd2820r_t2.c index 9c0c4f42175c..35fe364c7182 100644 --- a/drivers/media/dvb-frontends/cxd2820r_t2.c +++ b/drivers/media/dvb-frontends/cxd2820r_t2.c | |||
| @@ -120,7 +120,7 @@ int cxd2820r_set_frontend_t2(struct dvb_frontend *fe) | |||
| 120 | 120 | ||
| 121 | num = if_freq / 1000; /* Hz => kHz */ | 121 | num = if_freq / 1000; /* Hz => kHz */ |
| 122 | num *= 0x1000000; | 122 | num *= 0x1000000; |
| 123 | if_ctl = cxd2820r_div_u64_round_closest(num, 41000); | 123 | if_ctl = DIV_ROUND_CLOSEST_ULL(num, 41000); |
| 124 | buf[0] = ((if_ctl >> 16) & 0xff); | 124 | buf[0] = ((if_ctl >> 16) & 0xff); |
| 125 | buf[1] = ((if_ctl >> 8) & 0xff); | 125 | buf[1] = ((if_ctl >> 8) & 0xff); |
| 126 | buf[2] = ((if_ctl >> 0) & 0xff); | 126 | buf[2] = ((if_ctl >> 0) & 0xff); |
