From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16A88C35254 for ; Mon, 10 Feb 2020 18:36:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D751E20842 for ; Mon, 10 Feb 2020 18:36:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UBg/E6LE" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727818AbgBJSgv (ORCPT ); Mon, 10 Feb 2020 13:36:51 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39846 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727054AbgBJSgu (ORCPT ); Mon, 10 Feb 2020 13:36:50 -0500 Received: by mail-pl1-f195.google.com with SMTP id g6so3161860plp.6; Mon, 10 Feb 2020 10:36:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xIHWghuq57bNZQmkoa9sD64bgutKszdEWxhIC/P1U/8=; b=UBg/E6LEDfYoa2axXFcjSeSEBJyNWs9pyzktqFLalzYKw5filjmv9k7urADelFC49S UozMdhHPakXzhfo5bc4e9oSPcDXjSpy50Z0xz6O1O3bxz6c2sj72wVfaXWl+v/AmhOFi fKE2LAS4Tz7Iqw6Ir8ZdzziKCYwW9Pr64pkk4KjJRZIGmEGnd0IDiQMlWnLa/wwYAPEU eWGku+TNHVgOJJFBq+v4g5SvjHHDBJR4iJVclwY9nvBgfY2wt+8HlSeoKbr4S7mypcnA 7orVDLtHAt6pSah0G1AM4yYxakSeYierbhOFGE/Svp9S+PzOqrkx/yC1VQWWrD/M/7JF CbPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xIHWghuq57bNZQmkoa9sD64bgutKszdEWxhIC/P1U/8=; b=aI1efSkijaFj6o8EoF0UmOrXu4QLbwpxqsiM2nLL0EWHsMA7sseH2os+y6xNgm0zB4 QNbo9KcK8taFDir3OpGWcwXF4maFfR/IGpAslzkg3IqoIJkdGgiFS1OMUzjDlrAgRPCY 78N6nLXBo7PB24c+3gDQKiDKX6Qve/92vVTVv26uYnU2HvQH440aiPvmE8FUNfobk2k1 /3k+0ttJWomVzK3qkMH1Cu+PKAC5/bHoDo8tqkrFBtuEkTeMfWUA/65o82x91KaSx3pl /ZZIdlYgFT9w52ZfHluJz1b5a7vQGkSb5hS9uQIJP20layOGsuOgq138Oz8qaSy36hTG rquQ== X-Gm-Message-State: APjAAAUHgW5i39TPRyyd0s099RHIYP0I5CQRCdzLfsDwiz+FpTOLGzh5 28C9H3Q6YIFSZp7U3quhQnc= X-Google-Smtp-Source: APXvYqzjAHJVrtBuqvTIav0VcPlZjtwEefaqhO0qMC5uO7X6Dtv8H90x3gmxu53scY8wMv0NRcVw1w== X-Received: by 2002:a17:902:44d:: with SMTP id 71mr13817768ple.95.1581359809336; Mon, 10 Feb 2020 10:36:49 -0800 (PST) Received: from localhost.localdomain ([2405:204:8308:74f3:144f:bb39:afc3:51b0]) by smtp.gmail.com with ESMTPSA id gc1sm124922pjb.20.2020.02.10.10.36.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2020 10:36:48 -0800 (PST) From: Pragat Pandya To: gregkh@linuxfoundation.org, valdis.kletnieks@vt.edu Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, linux-fsdevel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Pragat Pandya Subject: [PATCH v2 04/19] staging: exfat: Rename variable 'Hour' to 'hour' Date: Tue, 11 Feb 2020 00:05:43 +0530 Message-Id: <20200210183558.11836-5-pragat.pandya@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200210183558.11836-1-pragat.pandya@gmail.com> References: <20200207094612.GA562325@kroah.com> <20200210183558.11836-1-pragat.pandya@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix checkpatch warning: Avoid CamelCase Change all occurrences of identifier "Hour" to "hour" Signed-off-by: Pragat Pandya --- drivers/staging/exfat/exfat.h | 2 +- drivers/staging/exfat/exfat_super.c | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h index 49e9390b4372..4ec4660e3a4d 100644 --- a/drivers/staging/exfat/exfat.h +++ b/drivers/staging/exfat/exfat.h @@ -225,7 +225,7 @@ struct date_time_t { u16 year; u16 month; u16 day; - u16 Hour; + u16 hour; u16 Minute; u16 Second; u16 MilliSecond; diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c index 020529228fdd..41e4fb8b697f 100644 --- a/drivers/staging/exfat/exfat_super.c +++ b/drivers/staging/exfat/exfat_super.c @@ -60,7 +60,7 @@ static void exfat_write_super(struct super_block *sb); static void exfat_time_fat2unix(struct timespec64 *ts, struct date_time_t *tp) { ts->tv_sec = mktime64(tp->year + 1980, tp->month + 1, tp->day, - tp->Hour, tp->Minute, tp->Second); + tp->hour, tp->Minute, tp->Second); ts->tv_nsec = tp->MilliSecond * NSEC_PER_MSEC; } @@ -77,7 +77,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->MilliSecond = 0; tp->Second = 0; tp->Minute = 0; - tp->Hour = 0; + tp->hour = 0; tp->day = 1; tp->month = 1; tp->year = 0; @@ -88,7 +88,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->MilliSecond = 999; tp->Second = 59; tp->Minute = 59; - tp->Hour = 23; + tp->hour = 23; tp->day = 31; tp->month = 12; tp->year = 127; @@ -98,7 +98,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->MilliSecond = ts->tv_nsec / NSEC_PER_MSEC; tp->Second = tm.tm_sec; tp->Minute = tm.tm_min; - tp->Hour = tm.tm_hour; + tp->hour = tm.tm_hour; tp->day = tm.tm_mday; tp->month = tm.tm_mon + 1; tp->year = tm.tm_year + 1900 - 1980; @@ -1508,7 +1508,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) info->CreateTimestamp.year = tm.year; info->CreateTimestamp.month = tm.mon; info->CreateTimestamp.day = tm.day; - info->CreateTimestamp.Hour = tm.hour; + info->CreateTimestamp.hour = tm.hour; info->CreateTimestamp.Minute = tm.min; info->CreateTimestamp.Second = tm.sec; info->CreateTimestamp.MilliSecond = 0; @@ -1517,7 +1517,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) info->ModifyTimestamp.year = tm.year; info->ModifyTimestamp.month = tm.mon; info->ModifyTimestamp.day = tm.day; - info->ModifyTimestamp.Hour = tm.hour; + info->ModifyTimestamp.hour = tm.hour; info->ModifyTimestamp.Minute = tm.min; info->ModifyTimestamp.Second = tm.sec; info->ModifyTimestamp.MilliSecond = 0; @@ -1607,7 +1607,7 @@ static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info) /* set FILE_INFO structure using the acquired struct dentry_t */ tm.sec = info->CreateTimestamp.Second; tm.min = info->CreateTimestamp.Minute; - tm.hour = info->CreateTimestamp.Hour; + tm.hour = info->CreateTimestamp.hour; tm.day = info->CreateTimestamp.day; tm.mon = info->CreateTimestamp.month; tm.year = info->CreateTimestamp.year; @@ -1615,7 +1615,7 @@ static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info) tm.sec = info->ModifyTimestamp.Second; tm.min = info->ModifyTimestamp.Minute; - tm.hour = info->ModifyTimestamp.Hour; + tm.hour = info->ModifyTimestamp.hour; tm.day = info->ModifyTimestamp.day; tm.mon = info->ModifyTimestamp.month; tm.year = info->ModifyTimestamp.year; @@ -1925,7 +1925,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) dir_entry->CreateTimestamp.year = tm.year; dir_entry->CreateTimestamp.month = tm.mon; dir_entry->CreateTimestamp.day = tm.day; - dir_entry->CreateTimestamp.Hour = tm.hour; + dir_entry->CreateTimestamp.hour = tm.hour; dir_entry->CreateTimestamp.Minute = tm.min; dir_entry->CreateTimestamp.Second = tm.sec; dir_entry->CreateTimestamp.MilliSecond = 0; @@ -1934,7 +1934,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) dir_entry->ModifyTimestamp.year = tm.year; dir_entry->ModifyTimestamp.month = tm.mon; dir_entry->ModifyTimestamp.day = tm.day; - dir_entry->ModifyTimestamp.Hour = tm.hour; + dir_entry->ModifyTimestamp.hour = tm.hour; dir_entry->ModifyTimestamp.Minute = tm.min; dir_entry->ModifyTimestamp.Second = tm.sec; dir_entry->ModifyTimestamp.MilliSecond = 0; -- 2.17.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9602FC3B186 for ; Mon, 10 Feb 2020 18:36:54 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6791620842 for ; Mon, 10 Feb 2020 18:36:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UBg/E6LE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6791620842 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7622A857C3; Mon, 10 Feb 2020 18:36:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bWiSIPoWoMfE; Mon, 10 Feb 2020 18:36:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 4B39E838BF; Mon, 10 Feb 2020 18:36:52 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id CDDA61BF964 for ; Mon, 10 Feb 2020 18:36:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C87DB84492 for ; Mon, 10 Feb 2020 18:36:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S2oJX6n0IukF for ; Mon, 10 Feb 2020 18:36:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by fraxinus.osuosl.org (Postfix) with ESMTPS id B5B3684545 for ; Mon, 10 Feb 2020 18:36:49 +0000 (UTC) Received: by mail-pl1-f195.google.com with SMTP id t14so3154954plr.8 for ; Mon, 10 Feb 2020 10:36:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xIHWghuq57bNZQmkoa9sD64bgutKszdEWxhIC/P1U/8=; b=UBg/E6LEDfYoa2axXFcjSeSEBJyNWs9pyzktqFLalzYKw5filjmv9k7urADelFC49S UozMdhHPakXzhfo5bc4e9oSPcDXjSpy50Z0xz6O1O3bxz6c2sj72wVfaXWl+v/AmhOFi fKE2LAS4Tz7Iqw6Ir8ZdzziKCYwW9Pr64pkk4KjJRZIGmEGnd0IDiQMlWnLa/wwYAPEU eWGku+TNHVgOJJFBq+v4g5SvjHHDBJR4iJVclwY9nvBgfY2wt+8HlSeoKbr4S7mypcnA 7orVDLtHAt6pSah0G1AM4yYxakSeYierbhOFGE/Svp9S+PzOqrkx/yC1VQWWrD/M/7JF CbPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xIHWghuq57bNZQmkoa9sD64bgutKszdEWxhIC/P1U/8=; b=YzxEW7G5jLj6xiqu0YkGH1Sd7GDSWeXsrrfaFWvWYE6w8vE5iVlYfY26Y9UbL9lwkt pO0W5sgK9B+Sj1sgRcMtILsJFomvBdJqAonrf/XnD5KQlX9oqyj9dqWCuVKW5nSn9SAT R4aj7qP9Nr0ghb6UL1+Wlqz01f1ZHFORY+kAk6Lcahh3iz3/GcUE8GA3zfHWwzjWZ+2y tlODELHOD+EjcQ2sU+keT0kpgCRqD8HPc935vNrNAUQqeArkQ3H5z3pnnszzmlo/6B4a y8BMKm9Vzbgg0IymKQPJimvbfdznCdynBCUYoVYTN+gXSvCyjIZdSWm3ftRskAv1+CRs JuXA== X-Gm-Message-State: APjAAAWUU4MJnmGbXtNwQN2J7faM4LHUYPw9C96APJ6Iaj/DYIS+1xHo G3n0hH39c7fpsBGCMWYp3m4= X-Google-Smtp-Source: APXvYqzjAHJVrtBuqvTIav0VcPlZjtwEefaqhO0qMC5uO7X6Dtv8H90x3gmxu53scY8wMv0NRcVw1w== X-Received: by 2002:a17:902:44d:: with SMTP id 71mr13817768ple.95.1581359809336; Mon, 10 Feb 2020 10:36:49 -0800 (PST) Received: from localhost.localdomain ([2405:204:8308:74f3:144f:bb39:afc3:51b0]) by smtp.gmail.com with ESMTPSA id gc1sm124922pjb.20.2020.02.10.10.36.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2020 10:36:48 -0800 (PST) From: Pragat Pandya To: gregkh@linuxfoundation.org, valdis.kletnieks@vt.edu Subject: [PATCH v2 04/19] staging: exfat: Rename variable 'Hour' to 'hour' Date: Tue, 11 Feb 2020 00:05:43 +0530 Message-Id: <20200210183558.11836-5-pragat.pandya@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200210183558.11836-1-pragat.pandya@gmail.com> References: <20200207094612.GA562325@kroah.com> <20200210183558.11836-1-pragat.pandya@gmail.com> X-BeenThere: driverdev-devel@linuxdriverproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, linux-fsdevel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" Fix checkpatch warning: Avoid CamelCase Change all occurrences of identifier "Hour" to "hour" Signed-off-by: Pragat Pandya --- drivers/staging/exfat/exfat.h | 2 +- drivers/staging/exfat/exfat_super.c | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h index 49e9390b4372..4ec4660e3a4d 100644 --- a/drivers/staging/exfat/exfat.h +++ b/drivers/staging/exfat/exfat.h @@ -225,7 +225,7 @@ struct date_time_t { u16 year; u16 month; u16 day; - u16 Hour; + u16 hour; u16 Minute; u16 Second; u16 MilliSecond; diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c index 020529228fdd..41e4fb8b697f 100644 --- a/drivers/staging/exfat/exfat_super.c +++ b/drivers/staging/exfat/exfat_super.c @@ -60,7 +60,7 @@ static void exfat_write_super(struct super_block *sb); static void exfat_time_fat2unix(struct timespec64 *ts, struct date_time_t *tp) { ts->tv_sec = mktime64(tp->year + 1980, tp->month + 1, tp->day, - tp->Hour, tp->Minute, tp->Second); + tp->hour, tp->Minute, tp->Second); ts->tv_nsec = tp->MilliSecond * NSEC_PER_MSEC; } @@ -77,7 +77,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->MilliSecond = 0; tp->Second = 0; tp->Minute = 0; - tp->Hour = 0; + tp->hour = 0; tp->day = 1; tp->month = 1; tp->year = 0; @@ -88,7 +88,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->MilliSecond = 999; tp->Second = 59; tp->Minute = 59; - tp->Hour = 23; + tp->hour = 23; tp->day = 31; tp->month = 12; tp->year = 127; @@ -98,7 +98,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->MilliSecond = ts->tv_nsec / NSEC_PER_MSEC; tp->Second = tm.tm_sec; tp->Minute = tm.tm_min; - tp->Hour = tm.tm_hour; + tp->hour = tm.tm_hour; tp->day = tm.tm_mday; tp->month = tm.tm_mon + 1; tp->year = tm.tm_year + 1900 - 1980; @@ -1508,7 +1508,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) info->CreateTimestamp.year = tm.year; info->CreateTimestamp.month = tm.mon; info->CreateTimestamp.day = tm.day; - info->CreateTimestamp.Hour = tm.hour; + info->CreateTimestamp.hour = tm.hour; info->CreateTimestamp.Minute = tm.min; info->CreateTimestamp.Second = tm.sec; info->CreateTimestamp.MilliSecond = 0; @@ -1517,7 +1517,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) info->ModifyTimestamp.year = tm.year; info->ModifyTimestamp.month = tm.mon; info->ModifyTimestamp.day = tm.day; - info->ModifyTimestamp.Hour = tm.hour; + info->ModifyTimestamp.hour = tm.hour; info->ModifyTimestamp.Minute = tm.min; info->ModifyTimestamp.Second = tm.sec; info->ModifyTimestamp.MilliSecond = 0; @@ -1607,7 +1607,7 @@ static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info) /* set FILE_INFO structure using the acquired struct dentry_t */ tm.sec = info->CreateTimestamp.Second; tm.min = info->CreateTimestamp.Minute; - tm.hour = info->CreateTimestamp.Hour; + tm.hour = info->CreateTimestamp.hour; tm.day = info->CreateTimestamp.day; tm.mon = info->CreateTimestamp.month; tm.year = info->CreateTimestamp.year; @@ -1615,7 +1615,7 @@ static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info) tm.sec = info->ModifyTimestamp.Second; tm.min = info->ModifyTimestamp.Minute; - tm.hour = info->ModifyTimestamp.Hour; + tm.hour = info->ModifyTimestamp.hour; tm.day = info->ModifyTimestamp.day; tm.mon = info->ModifyTimestamp.month; tm.year = info->ModifyTimestamp.year; @@ -1925,7 +1925,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) dir_entry->CreateTimestamp.year = tm.year; dir_entry->CreateTimestamp.month = tm.mon; dir_entry->CreateTimestamp.day = tm.day; - dir_entry->CreateTimestamp.Hour = tm.hour; + dir_entry->CreateTimestamp.hour = tm.hour; dir_entry->CreateTimestamp.Minute = tm.min; dir_entry->CreateTimestamp.Second = tm.sec; dir_entry->CreateTimestamp.MilliSecond = 0; @@ -1934,7 +1934,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) dir_entry->ModifyTimestamp.year = tm.year; dir_entry->ModifyTimestamp.month = tm.mon; dir_entry->ModifyTimestamp.day = tm.day; - dir_entry->ModifyTimestamp.Hour = tm.hour; + dir_entry->ModifyTimestamp.hour = tm.hour; dir_entry->ModifyTimestamp.Minute = tm.min; dir_entry->ModifyTimestamp.Second = tm.sec; dir_entry->ModifyTimestamp.MilliSecond = 0; -- 2.17.1 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3ED8C352A5 for ; Mon, 10 Feb 2020 18:36:54 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 73B402085B for ; Mon, 10 Feb 2020 18:36:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UBg/E6LE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 73B402085B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-kernel-mentees-bounces@lists.linuxfoundation.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5647D85116; Mon, 10 Feb 2020 18:36:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MkXfjSuhUzj6; Mon, 10 Feb 2020 18:36:53 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3948B84492; Mon, 10 Feb 2020 18:36:53 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 2572FC07FE; Mon, 10 Feb 2020 18:36:53 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id B819BC0171 for ; Mon, 10 Feb 2020 18:36:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B527720452 for ; Mon, 10 Feb 2020 18:36:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3T8ANzEFIvFq for ; Mon, 10 Feb 2020 18:36:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pj1-f65.google.com (mail-pj1-f65.google.com [209.85.216.65]) by silver.osuosl.org (Postfix) with ESMTPS id C2EEE20418 for ; Mon, 10 Feb 2020 18:36:49 +0000 (UTC) Received: by mail-pj1-f65.google.com with SMTP id n96so129276pjc.3 for ; Mon, 10 Feb 2020 10:36:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xIHWghuq57bNZQmkoa9sD64bgutKszdEWxhIC/P1U/8=; b=UBg/E6LEDfYoa2axXFcjSeSEBJyNWs9pyzktqFLalzYKw5filjmv9k7urADelFC49S UozMdhHPakXzhfo5bc4e9oSPcDXjSpy50Z0xz6O1O3bxz6c2sj72wVfaXWl+v/AmhOFi fKE2LAS4Tz7Iqw6Ir8ZdzziKCYwW9Pr64pkk4KjJRZIGmEGnd0IDiQMlWnLa/wwYAPEU eWGku+TNHVgOJJFBq+v4g5SvjHHDBJR4iJVclwY9nvBgfY2wt+8HlSeoKbr4S7mypcnA 7orVDLtHAt6pSah0G1AM4yYxakSeYierbhOFGE/Svp9S+PzOqrkx/yC1VQWWrD/M/7JF CbPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xIHWghuq57bNZQmkoa9sD64bgutKszdEWxhIC/P1U/8=; b=agyyBhj+qUXFaKuBSr7csszvpRc7UbSceJ2VxBUxUpgxDObyJgRuMESJFVdnMybp+l MsMDu5LHeqq4tc+Mg9CsSTFTAh3U6xo3h06pUsxnwyFqH+1DJmW4jnL/sqN0EHKz6SUd lz3E5rVCtlVRK8S3/R1b+n/ho8AEloaDgZ2afirC281be+3w5xik1BRoNkRyHLeJkrqj x+jojztmMUXbB/dtyG8V3Yb52pmHM+EqaCFKHzhy+/HKxChYN9PTDSYEfLPL+F6nMeG9 bDt0mD63eS6mq8zSLpRUGJIFSUrUvXqUGhLSQwjwlldOUz/p0nWTOQ+//rArVHTVUmXr 7xhQ== X-Gm-Message-State: APjAAAXqwmzlNbTBnQ6SZABkcneH0vpDE9H+RqNgnhzUg41G69DdrnOC 4dMKuBscSiNIARyQZo3UtDU= X-Google-Smtp-Source: APXvYqzjAHJVrtBuqvTIav0VcPlZjtwEefaqhO0qMC5uO7X6Dtv8H90x3gmxu53scY8wMv0NRcVw1w== X-Received: by 2002:a17:902:44d:: with SMTP id 71mr13817768ple.95.1581359809336; Mon, 10 Feb 2020 10:36:49 -0800 (PST) Received: from localhost.localdomain ([2405:204:8308:74f3:144f:bb39:afc3:51b0]) by smtp.gmail.com with ESMTPSA id gc1sm124922pjb.20.2020.02.10.10.36.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2020 10:36:48 -0800 (PST) From: Pragat Pandya To: gregkh@linuxfoundation.org, valdis.kletnieks@vt.edu Date: Tue, 11 Feb 2020 00:05:43 +0530 Message-Id: <20200210183558.11836-5-pragat.pandya@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200210183558.11836-1-pragat.pandya@gmail.com> References: <20200207094612.GA562325@kroah.com> <20200210183558.11836-1-pragat.pandya@gmail.com> Cc: devel@driverdev.osuosl.org, Pragat Pandya , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: [Linux-kernel-mentees] [PATCH v2 04/19] staging: exfat: Rename variable 'Hour' to 'hour' X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" Fix checkpatch warning: Avoid CamelCase Change all occurrences of identifier "Hour" to "hour" Signed-off-by: Pragat Pandya --- drivers/staging/exfat/exfat.h | 2 +- drivers/staging/exfat/exfat_super.c | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h index 49e9390b4372..4ec4660e3a4d 100644 --- a/drivers/staging/exfat/exfat.h +++ b/drivers/staging/exfat/exfat.h @@ -225,7 +225,7 @@ struct date_time_t { u16 year; u16 month; u16 day; - u16 Hour; + u16 hour; u16 Minute; u16 Second; u16 MilliSecond; diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c index 020529228fdd..41e4fb8b697f 100644 --- a/drivers/staging/exfat/exfat_super.c +++ b/drivers/staging/exfat/exfat_super.c @@ -60,7 +60,7 @@ static void exfat_write_super(struct super_block *sb); static void exfat_time_fat2unix(struct timespec64 *ts, struct date_time_t *tp) { ts->tv_sec = mktime64(tp->year + 1980, tp->month + 1, tp->day, - tp->Hour, tp->Minute, tp->Second); + tp->hour, tp->Minute, tp->Second); ts->tv_nsec = tp->MilliSecond * NSEC_PER_MSEC; } @@ -77,7 +77,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->MilliSecond = 0; tp->Second = 0; tp->Minute = 0; - tp->Hour = 0; + tp->hour = 0; tp->day = 1; tp->month = 1; tp->year = 0; @@ -88,7 +88,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->MilliSecond = 999; tp->Second = 59; tp->Minute = 59; - tp->Hour = 23; + tp->hour = 23; tp->day = 31; tp->month = 12; tp->year = 127; @@ -98,7 +98,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->MilliSecond = ts->tv_nsec / NSEC_PER_MSEC; tp->Second = tm.tm_sec; tp->Minute = tm.tm_min; - tp->Hour = tm.tm_hour; + tp->hour = tm.tm_hour; tp->day = tm.tm_mday; tp->month = tm.tm_mon + 1; tp->year = tm.tm_year + 1900 - 1980; @@ -1508,7 +1508,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) info->CreateTimestamp.year = tm.year; info->CreateTimestamp.month = tm.mon; info->CreateTimestamp.day = tm.day; - info->CreateTimestamp.Hour = tm.hour; + info->CreateTimestamp.hour = tm.hour; info->CreateTimestamp.Minute = tm.min; info->CreateTimestamp.Second = tm.sec; info->CreateTimestamp.MilliSecond = 0; @@ -1517,7 +1517,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) info->ModifyTimestamp.year = tm.year; info->ModifyTimestamp.month = tm.mon; info->ModifyTimestamp.day = tm.day; - info->ModifyTimestamp.Hour = tm.hour; + info->ModifyTimestamp.hour = tm.hour; info->ModifyTimestamp.Minute = tm.min; info->ModifyTimestamp.Second = tm.sec; info->ModifyTimestamp.MilliSecond = 0; @@ -1607,7 +1607,7 @@ static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info) /* set FILE_INFO structure using the acquired struct dentry_t */ tm.sec = info->CreateTimestamp.Second; tm.min = info->CreateTimestamp.Minute; - tm.hour = info->CreateTimestamp.Hour; + tm.hour = info->CreateTimestamp.hour; tm.day = info->CreateTimestamp.day; tm.mon = info->CreateTimestamp.month; tm.year = info->CreateTimestamp.year; @@ -1615,7 +1615,7 @@ static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info) tm.sec = info->ModifyTimestamp.Second; tm.min = info->ModifyTimestamp.Minute; - tm.hour = info->ModifyTimestamp.Hour; + tm.hour = info->ModifyTimestamp.hour; tm.day = info->ModifyTimestamp.day; tm.mon = info->ModifyTimestamp.month; tm.year = info->ModifyTimestamp.year; @@ -1925,7 +1925,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) dir_entry->CreateTimestamp.year = tm.year; dir_entry->CreateTimestamp.month = tm.mon; dir_entry->CreateTimestamp.day = tm.day; - dir_entry->CreateTimestamp.Hour = tm.hour; + dir_entry->CreateTimestamp.hour = tm.hour; dir_entry->CreateTimestamp.Minute = tm.min; dir_entry->CreateTimestamp.Second = tm.sec; dir_entry->CreateTimestamp.MilliSecond = 0; @@ -1934,7 +1934,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) dir_entry->ModifyTimestamp.year = tm.year; dir_entry->ModifyTimestamp.month = tm.mon; dir_entry->ModifyTimestamp.day = tm.day; - dir_entry->ModifyTimestamp.Hour = tm.hour; + dir_entry->ModifyTimestamp.hour = tm.hour; dir_entry->ModifyTimestamp.Minute = tm.min; dir_entry->ModifyTimestamp.Second = tm.sec; dir_entry->ModifyTimestamp.MilliSecond = 0; -- 2.17.1 _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees