diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-04 22:25:48 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-04 22:25:48 +0300 |
commit | 0579e6e3a326dcd836f1a45fef7f3487822e6373 (patch) | |
tree | 03bab6ea23e08a6cc80d4cef08165fb5914cdcdf /Documentation/linux_tv/media/dvb/dvbproperty.rst | |
parent | a163ad5ceb30d2034b70cda8bdad0aaabdba1614 (diff) | |
download | linux-0579e6e3a326dcd836f1a45fef7f3487822e6373.tar.xz |
doc-rst: linux_tv: remove whitespaces
Let's remove bad whitespaces on the entire book.
That helps to avoid mixing whitespace removal with other
patches.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'Documentation/linux_tv/media/dvb/dvbproperty.rst')
-rw-r--r-- | Documentation/linux_tv/media/dvb/dvbproperty.rst | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/Documentation/linux_tv/media/dvb/dvbproperty.rst b/Documentation/linux_tv/media/dvb/dvbproperty.rst index 34187964db38..9b3782c5bb44 100644 --- a/Documentation/linux_tv/media/dvb/dvbproperty.rst +++ b/Documentation/linux_tv/media/dvb/dvbproperty.rst @@ -59,33 +59,33 @@ The code that would do the above is: #include <linux/dvb/frontend.h> static struct dtv_property props[] = { - { .cmd = DTV_DELIVERY_SYSTEM, .u.data = SYS_DVBC_ANNEX_A }, - { .cmd = DTV_FREQUENCY, .u.data = 651000000 }, - { .cmd = DTV_MODULATION, .u.data = QAM_256 }, - { .cmd = DTV_INVERSION, .u.data = INVERSION_AUTO }, - { .cmd = DTV_SYMBOL_RATE, .u.data = 5217000 }, - { .cmd = DTV_INNER_FEC, .u.data = FEC_3_4 }, - { .cmd = DTV_TUNE } + { .cmd = DTV_DELIVERY_SYSTEM, .u.data = SYS_DVBC_ANNEX_A }, + { .cmd = DTV_FREQUENCY, .u.data = 651000000 }, + { .cmd = DTV_MODULATION, .u.data = QAM_256 }, + { .cmd = DTV_INVERSION, .u.data = INVERSION_AUTO }, + { .cmd = DTV_SYMBOL_RATE, .u.data = 5217000 }, + { .cmd = DTV_INNER_FEC, .u.data = FEC_3_4 }, + { .cmd = DTV_TUNE } }; static struct dtv_properties dtv_prop = { - .num = 6, .props = props + .num = 6, .props = props }; int main(void) { - int fd = open("/dev/dvb/adapter0/frontend0", O_RDWR); - - if (!fd) { - perror ("open"); - return -1; - } - if (ioctl(fd, FE_SET_PROPERTY, &dtv_prop) == -1) { - perror("ioctl"); - return -1; - } - printf("Frontend set\\n"); - return 0; + int fd = open("/dev/dvb/adapter0/frontend0", O_RDWR); + + if (!fd) { + perror ("open"); + return -1; + } + if (ioctl(fd, FE_SET_PROPERTY, &dtv_prop) == -1) { + perror("ioctl"); + return -1; + } + printf("Frontend set\\n"); + return 0; } NOTE: While it is possible to directly call the Kernel code like the |