lkml.org 
[lkml]   [2017]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 12/15] s390/zcrypt: make device_type const
    Date
    Make these const as they are only stored in the type field of a device
    structure, which is const.
    Done using Coccinelle.

    Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
    ---
    drivers/s390/crypto/ap_card.c | 2 +-
    drivers/s390/crypto/ap_queue.c | 2 +-
    2 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/s390/crypto/ap_card.c b/drivers/s390/crypto/ap_card.c
    index 836efac9..0329148 100644
    --- a/drivers/s390/crypto/ap_card.c
    +++ b/drivers/s390/crypto/ap_card.c
    @@ -153,7 +153,7 @@ static ssize_t ap_modalias_show(struct device *dev,
    NULL
    };

    -static struct device_type ap_card_type = {
    +static const struct device_type ap_card_type = {
    .name = "ap_card",
    .groups = ap_card_dev_attr_groups,
    };
    diff --git a/drivers/s390/crypto/ap_queue.c b/drivers/s390/crypto/ap_queue.c
    index 0f1a5d0..e2a85c26 100644
    --- a/drivers/s390/crypto/ap_queue.c
    +++ b/drivers/s390/crypto/ap_queue.c
    @@ -577,7 +577,7 @@ static ssize_t ap_interrupt_show(struct device *dev,
    NULL
    };

    -static struct device_type ap_queue_type = {
    +static const struct device_type ap_queue_type = {
    .name = "ap_queue",
    .groups = ap_queue_dev_attr_groups,
    };
    --
    1.9.1
    \
     
     \ /
      Last update: 2017-08-19 10:28    [W:3.741 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site