From patchwork Thu Nov 27 00:37:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 41585 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 26AFC25E18 for ; Thu, 27 Nov 2014 00:38:29 +0000 (UTC) Received: by mail-lb0-f200.google.com with SMTP id f15sf2437542lbj.7 for ; Wed, 26 Nov 2014 16:38:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=H6uEoiQDITMVzthycK5Gp4SwO3mcRrC7i9fhck+o0k0=; b=QM0iKJlzXsT0dYNSpBU/V5S8NZxMf/kEdLqHp84jYmzNTi7mCsX5O38upx+nN9LgnF Jo+o7qK9vopLCZFfCQzYc4kn330wwmHXRLwu6u90E3fV1aeFDbmp4BESQr41UO3v1LOx L6om5UatiakVkWIaa79DlC0xEv1HvFmM3qsemQLJSbFwf1fbzKPpbbahiXK21cIoe9YE JJVg8ImyKpmt9KKG3n5QjOg/VkSzkFHLQ53fJM8rHJIWo6ki6ftB9GigclCkMaBVlOW1 p+p8Ga7HAFTgcpwR9+EpXUqLDziHCN/GFqLwOWqDdD9w4mdfJS9KZS8Xk6kwX+5Bl7uq jjng== X-Gm-Message-State: ALoCoQl78QrVsDB5Vft6OtQZihqEIcvLYAxuq/Wfe44ZvKFpqHAxRxZtVaEtBFXVL8+Ipc1A8C3I X-Received: by 10.194.176.106 with SMTP id ch10mr6552wjc.6.1417048707791; Wed, 26 Nov 2014 16:38:27 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.9 with SMTP id f9ls374734laa.66.gmail; Wed, 26 Nov 2014 16:38:27 -0800 (PST) X-Received: by 10.112.56.134 with SMTP id a6mr36660417lbq.25.1417048707354; Wed, 26 Nov 2014 16:38:27 -0800 (PST) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id qb8si5739982lbb.127.2014.11.26.16.38.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Nov 2014 16:38:27 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by mail-la0-f43.google.com with SMTP id q1so3423087lam.30 for ; Wed, 26 Nov 2014 16:38:27 -0800 (PST) X-Received: by 10.153.7.170 with SMTP id dd10mr36106515lad.44.1417048707088; Wed, 26 Nov 2014 16:38:27 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp725261lbc; Wed, 26 Nov 2014 16:38:26 -0800 (PST) X-Received: by 10.70.37.35 with SMTP id v3mr2702118pdj.4.1417048705776; Wed, 26 Nov 2014 16:38:25 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1si9240651pda.28.2014.11.26.16.38.25 for ; Wed, 26 Nov 2014 16:38:25 -0800 (PST) Received-SPF: none (google.com: linux-pm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752735AbaK0AiY (ORCPT + 12 others); Wed, 26 Nov 2014 19:38:24 -0500 Received: from mail-pd0-f178.google.com ([209.85.192.178]:42250 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751699AbaK0AiY (ORCPT ); Wed, 26 Nov 2014 19:38:24 -0500 Received: by mail-pd0-f178.google.com with SMTP id g10so3831961pdj.9 for ; Wed, 26 Nov 2014 16:38:23 -0800 (PST) X-Received: by 10.70.137.103 with SMTP id qh7mr57933034pdb.157.1417048703651; Wed, 26 Nov 2014 16:38:23 -0800 (PST) Received: from localhost ([122.167.111.40]) by mx.google.com with ESMTPSA id dj1sm5366111pbb.48.2014.11.26.16.38.22 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 26 Nov 2014 16:38:22 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki , edubezval@gmail.com Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, l.majewski@samsung.com, Viresh Kumar Subject: [PATCH V2 1/4] cpufreq: Fix formatting issues in 'struct cpufreq_driver' Date: Thu, 27 Nov 2014 06:07:49 +0530 Message-Id: <16a1b54a60fe1fda7b9f9a30336f952e62a5383b.1417048449.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.3.693.g996b0fd In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Adding any new callback to 'struct cpufreq_driver' gives following checkpatch warning: WARNING: Unnecessary space before function pointer arguments + void (*ready) (struct cpufreq_policy *policy); This is because we have been using a tab spacing between function pointer name and its arguments and the new one tried to follow that. Though we normally don't try to fix every checkpatch warning, specially around formatting issues as that creates unnecessary noise over lists. But I thought we better fix this so that new additions don't generate these warnings plus it looks far better/symmetric now. So, remove these tab spacing issues in 'struct cpufreq_driver' only + fix alignment of all members. Signed-off-by: Viresh Kumar Reviewed-by: Eduardo Valentin Tested-by: Eduardo Valentin --- include/linux/cpufreq.h | 50 ++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 503b085..db3c130 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -217,26 +217,26 @@ __ATTR(_name, 0644, show_##_name, store_##_name) struct cpufreq_driver { - char name[CPUFREQ_NAME_LEN]; - u8 flags; - void *driver_data; + char name[CPUFREQ_NAME_LEN]; + u8 flags; + void *driver_data; /* needed by all drivers */ - int (*init) (struct cpufreq_policy *policy); - int (*verify) (struct cpufreq_policy *policy); + int (*init)(struct cpufreq_policy *policy); + int (*verify)(struct cpufreq_policy *policy); /* define one out of two */ - int (*setpolicy) (struct cpufreq_policy *policy); + int (*setpolicy)(struct cpufreq_policy *policy); /* * On failure, should always restore frequency to policy->restore_freq * (i.e. old freq). */ - int (*target) (struct cpufreq_policy *policy, /* Deprecated */ - unsigned int target_freq, - unsigned int relation); - int (*target_index) (struct cpufreq_policy *policy, - unsigned int index); + int (*target)(struct cpufreq_policy *policy, + unsigned int target_freq, + unsigned int relation); /* Deprecated */ + int (*target_index)(struct cpufreq_policy *policy, + unsigned int index); /* * Only for drivers with target_index() and CPUFREQ_ASYNC_NOTIFICATION * unset. @@ -252,27 +252,27 @@ struct cpufreq_driver { * wish to switch to intermediate frequency for some target frequency. * In that case core will directly call ->target_index(). */ - unsigned int (*get_intermediate)(struct cpufreq_policy *policy, - unsigned int index); - int (*target_intermediate)(struct cpufreq_policy *policy, - unsigned int index); + unsigned int (*get_intermediate)(struct cpufreq_policy *policy, + unsigned int index); + int (*target_intermediate)(struct cpufreq_policy *policy, + unsigned int index); /* should be defined, if possible */ - unsigned int (*get) (unsigned int cpu); + unsigned int (*get)(unsigned int cpu); /* optional */ - int (*bios_limit) (int cpu, unsigned int *limit); + int (*bios_limit)(int cpu, unsigned int *limit); - int (*exit) (struct cpufreq_policy *policy); - void (*stop_cpu) (struct cpufreq_policy *policy); - int (*suspend) (struct cpufreq_policy *policy); - int (*resume) (struct cpufreq_policy *policy); - struct freq_attr **attr; + int (*exit)(struct cpufreq_policy *policy); + void (*stop_cpu)(struct cpufreq_policy *policy); + int (*suspend)(struct cpufreq_policy *policy); + int (*resume)(struct cpufreq_policy *policy); + struct freq_attr **attr; /* platform specific boost support code */ - bool boost_supported; - bool boost_enabled; - int (*set_boost) (int state); + bool boost_supported; + bool boost_enabled; + int (*set_boost)(int state); }; /* flags */