Skip to content

Commit 833ff5e

Browse files
committed
media: ca.h: get rid of CA_SET_PID
This ioctl seems to be some attempt to support a feature at the bt8xx dst_ca driver. Yet, as said there, it "needs more work". Right now, the code there is just a boilerplate. At the end of the day, no driver uses this ioctl, nor it is documented anywhere (except for "needs more work"). So, get rid of it. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
1 parent abe8ee9 commit 833ff5e

7 files changed

Lines changed: 0 additions & 100 deletions

File tree

‎Documentation/media/ca.h.rst.exceptions‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ replace define CA_NDS :c:type:`ca_descr_info`
1616
replace define CA_DSS :c:type:`ca_descr_info`
1717

1818
# some typedefs should point to struct/enums
19-
replace typedef ca_pid_t :c:type:`ca_pid`
2019
replace typedef ca_slot_info_t :c:type:`ca_slot_info`
2120
replace typedef ca_descr_info_t :c:type:`ca_descr_info`
2221
replace typedef ca_caps_t :c:type:`ca_caps`

‎Documentation/media/dvb-drivers/ci.rst‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ All these ioctls are also valid for the High level CI interface
143143
#define CA_GET_MSG _IOR('o', 132, ca_msg_t)
144144
#define CA_SEND_MSG _IOW('o', 133, ca_msg_t)
145145
#define CA_SET_DESCR _IOW('o', 134, ca_descr_t)
146-
#define CA_SET_PID _IOW('o', 135, ca_pid_t)
147146

148147

149148
On querying the device, the device yields information thus:

‎Documentation/media/uapi/dvb/ca-set-pid.rst‎

Lines changed: 0 additions & 60 deletions
This file was deleted.

‎Documentation/media/uapi/dvb/ca_data_types.rst‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,3 @@ ca_descr_t
9494
unsigned int parity;
9595
unsigned char cw[8];
9696
} ca_descr_t;
97-
98-
99-
.. c:type:: ca_pid
100-
101-
ca-pid
102-
======
103-
104-
105-
.. code-block:: c
106-
107-
typedef struct ca_pid {
108-
unsigned int pid;
109-
int index; /* -1 == disable*/
110-
} ca_pid_t;

‎Documentation/media/uapi/dvb/ca_function_calls.rst‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ CA Function Calls
1818
ca-get-msg
1919
ca-send-msg
2020
ca-set-descr
21-
ca-set-pid

‎drivers/media/pci/bt8xx/dst_ca.c‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,6 @@ static int ca_set_slot_descr(void)
6464
return -EOPNOTSUPP;
6565
}
6666

67-
/* Need some more work */
68-
static int ca_set_pid(void)
69-
{
70-
/* We could make this more graceful ? */
71-
return -EOPNOTSUPP;
72-
}
73-
7467
static void put_command_and_length(u8 *data, int command, int length)
7568
{
7669
data[0] = (command >> 16) & 0xff;
@@ -629,15 +622,6 @@ static long dst_ca_ioctl(struct file *file, unsigned int cmd, unsigned long ioct
629622
}
630623
dprintk(verbose, DST_CA_INFO, 1, " -->CA_SET_DESCR Success !");
631624
break;
632-
case CA_SET_PID:
633-
dprintk(verbose, DST_CA_INFO, 1, " Setting PID");
634-
if ((ca_set_pid()) < 0) {
635-
dprintk(verbose, DST_CA_ERROR, 1, " -->CA_SET_PID Failed !");
636-
result = -1;
637-
goto free_mem_and_exit;
638-
}
639-
dprintk(verbose, DST_CA_INFO, 1, " -->CA_SET_PID Success !");
640-
break;
641625
default:
642626
result = -EOPNOTSUPP;
643627
}

‎include/uapi/linux/dvb/ca.h‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,13 @@ struct ca_descr {
7373
unsigned char cw[8];
7474
};
7575

76-
struct ca_pid {
77-
unsigned int pid;
78-
int index; /* -1 == disable*/
79-
};
80-
8176
#define CA_RESET _IO('o', 128)
8277
#define CA_GET_CAP _IOR('o', 129, struct ca_caps)
8378
#define CA_GET_SLOT_INFO _IOR('o', 130, struct ca_slot_info)
8479
#define CA_GET_DESCR_INFO _IOR('o', 131, struct ca_descr_info)
8580
#define CA_GET_MSG _IOR('o', 132, struct ca_msg)
8681
#define CA_SEND_MSG _IOW('o', 133, struct ca_msg)
8782
#define CA_SET_DESCR _IOW('o', 134, struct ca_descr)
88-
#define CA_SET_PID _IOW('o', 135, struct ca_pid)
8983

9084
#if !defined (__KERNEL__)
9185

@@ -95,7 +89,6 @@ typedef struct ca_descr_info ca_descr_info_t;
9589
typedef struct ca_caps ca_caps_t;
9690
typedef struct ca_msg ca_msg_t;
9791
typedef struct ca_descr ca_descr_t;
98-
typedef struct ca_pid ca_pid_t;
9992

10093
#endif
10194

0 commit comments

Comments
 (0)