Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1245612

Re: [PATCH v3 12/13] scsi: ufs-exynos: add UFS host support for Exynos SoCs

From Arnd Bergmann <arnd@arndb.de>
Newsgroups linux.kernel
Subject Re: [PATCH v3 12/13] scsi: ufs-exynos: add UFS host support for Exynos SoCs
Date 2015-10-13 13:40 +0200
Message-ID <qj65X-5h7-3@gated-at.bofh.it> (permalink)
References <qeHfQ-6EV-7@gated-at.bofh.it> <qeL06-3Kc-17@gated-at.bofh.it> <qj5Wh-55T-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tuesday 13 October 2015 16:49:39 Alim Akhtar wrote:
> >> diff --git a/drivers/scsi/ufs/ufs-exynos.h b/drivers/scsi/ufs/ufs-exynos.h
> >> new file mode 100644
> >> index 0000000..58aa714
> >> --- /dev/null
> >> +++ b/drivers/scsi/ufs/ufs-exynos.h
> >> @@ -0,0 +1,463 @@
> >> +/*
> >> + * UFS Host Controller driver for Exynos specific extensions
> >> + *
> >> + * Copyright (C) 2014-2015 Samsung Electronics Co., Ltd.
> >> + *
> >> + * This program is free software; you can redistribute it and/or modify
> >> + * it under the terms of the GNU General Public License as published by
> >> + * the Free Software Foundation; either version 2 of the License, or
> >> + * (at your option) any later version.
> >> + */
> >> +
> >> +#ifndef _UFS_EXYNOS_H_
> >> +#define _UFS_EXYNOS_H_
> >
> > You have a lot of things in this header that are only used in one of the
> > .c files, so just move them there and make the header as small as possible.
> >
> hmm..these are mostly the registers defines, will removes the one which 
> are not being used as of now.
> Do you think I should sill move them to .c file?
> 

Yes. No need to remove the unused register definitions, just don't put
them into a separate header if they are only used in one place.

	Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v3 12/13] scsi: ufs-exynos: add UFS host support for Exynos  SoCs Alim Akhtar <alim.akhtar@samsung.com> - 2015-10-13 13:30 +0200
  Re: [PATCH v3 12/13] scsi: ufs-exynos: add UFS host support for Exynos SoCs Arnd Bergmann <arnd@arndb.de> - 2015-10-13 13:40 +0200
    Re: [PATCH v3 12/13] scsi: ufs-exynos: add UFS host support for Exynos  SoCs Alim Akhtar <alim.akhtar@samsung.com> - 2015-10-13 14:00 +0200

csiph-web