]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
misc: xilinx-sdfec: Change struct for GET_STATUS IOCTL
authorDerek Kiernan <Derek.Kiernan@xilinx.com>
Fri, 23 Mar 2018 10:44:25 +0000 (10:44 +0000)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 23 Mar 2018 17:49:00 +0000 (18:49 +0100)
Removes configuration and error stats information from the status.

Signed-off-by: Derek Kiernan <Derek.Kiernan@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/misc/xilinx_sdfec.c
include/uapi/misc/xilinx_sdfec.h

index 0d8e532805aba2131178db160093c616b70f516a..4637fae3414fd1836999f23537b92f732cb8ff32 100644 (file)
@@ -237,14 +237,10 @@ xsdfec_get_status(struct xsdfec_dev *xsdfec, void __user *arg)
 
        status.fec_id = xsdfec->fec_id;
        status.state = xsdfec->state;
-       status.code = xsdfec->code;
-       status.order = xsdfec->order;
-       status.mode = xsdfec->op_mode;
        status.activity  =
                (xsdfec_regread(xsdfec,
                                XSDFEC_ACTIVE_ADDR) &
                                XSDFEC_IS_ACTIVITY_SET);
-       status.cecc_count = atomic_read(&xsdfec->cecc_count);
 
        err = copy_to_user(arg, &status, sizeof(status));
        if (err) {
index be678d4ce5d7c17b93d28d1f7a9e311f07d0de63..b30b89f5aac8b9983658c02a531f32a7f2496f96 100644 (file)
@@ -121,21 +121,13 @@ struct xsdfec_ldpc_params {
 /**
  * struct xsdfec_status - Status of SDFEC device
  * @fec_id: ID of SDFEC instance
- * @code: The codes being used by the SDFEC instance
- * @order: Order of Operation
  * @state: State of the SDFEC device
- * @mode: Mode of Operation
  * @activity: Describes if the SDFEC instance is Active
- * @cecc_count: Count of the Correctable ECC Errors occurred
  */
 struct xsdfec_status {
        s32 fec_id;
-       enum xsdfec_code code;
-       enum xsdfec_order order;
        enum xsdfec_state state;
-       enum xsdfec_op_mode mode;
        bool activity;
-       int cecc_count;
 };
 
 /**