Re: [RFT v2 06/48] pinctrl: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc

2015-06-10 Thread Matthias Brugger
2015-06-04 6:13 GMT+02:00 Jiang Liu :
> Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we
> already have a pointer to corresponding irq_desc.
>
> Signed-off-by: Jiang Liu 
> Acked-by: Linus Walleij 
> ---
[...]
>  drivers/pinctrl/mediatek/pinctrl-mtk-common.c |4 ++--

For the changes in pinctrl-mtk-common.c:

Acked-by: Matthias Brugger 
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v10 3/3] ARM: dts: Add initial device tree support for EXYNOS5410

2014-05-23 Thread Matthias Brugger
2014-05-23 12:35 GMT+02:00 Tarek Dakhran :
> Add initial device tree nodes for EXYNOS5410 SoC and SMDK5410 board.
>
> Signed-off-by: Tarek Dakhran 
> Signed-off-by: Vyacheslav Tyrtov 
> ---
>  arch/arm/boot/dts/Makefile|1 +
>  arch/arm/boot/dts/exynos5410-smdk5410.dts |   82 
>  arch/arm/boot/dts/exynos5410.dtsi |  206 
> +
>  3 files changed, 289 insertions(+)
>  create mode 100644 arch/arm/boot/dts/exynos5410-smdk5410.dts
>  create mode 100644 arch/arm/boot/dts/exynos5410.dtsi
>
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index cd399a2..709f862 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -73,6 +73,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
> exynos5250-smdk5250.dtb \
> exynos5250-snow.dtb \
> exynos5260-xyref5260.dtb \
> +   exynos5410-smdk5410.dtb \
> exynos5420-arndale-octa.dtb \
> exynos5420-peach-pit.dtb \
> exynos5420-smdk5420.dtb \
> diff --git a/arch/arm/boot/dts/exynos5410-smdk5410.dts 
> b/arch/arm/boot/dts/exynos5410-smdk5410.dts
> new file mode 100644
> index 000..7275bbd
> --- /dev/null
> +++ b/arch/arm/boot/dts/exynos5410-smdk5410.dts
> @@ -0,0 +1,82 @@
> +/*
> + * SAMSUNG SMDK5410 board device tree source
> + *
> + * Copyright (c) 2013 Samsung Electronics Co., Ltd.
> + * http://www.samsung.com
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> +*/
> +
> +/dts-v1/;
> +#include "exynos5410.dtsi"
> +/ {
> +   model = "Samsung SMDK5410 board based on EXYNOS5410";
> +   compatible = "samsung,smdk5410", "samsung,exynos5410", 
> "samsung,exynos5";
> +
> +   memory {
> +   reg = <0x4000 0x8000>;
> +   };
> +
> +   chosen {
> +   bootargs = "console=ttySAC2,115200";
> +   };
> +
> +   fin_pll: xxti {
> +   compatible = "fixed-clock";
> +   clock-frequency = <2400>;
> +   clock-output-names = "fin_pll";
> +   #clock-cells = <0>;
> +   };
> +
> +   firmware@02037000 {
> +   compatible = "samsung,secure-firmware";
> +   reg = <0x02037000 0x1000>;
> +   };
> +
> +};
> +
> +&mmc_0 {
> +   status = "okay";
> +   num-slots = <1>;
> +   supports-highspeed;
> +   broken-cd;
> +   card-detect-delay = <200>;
> +   samsung,dw-mshc-ciu-div = <3>;
> +   samsung,dw-mshc-sdr-timing = <2 3>;
> +   samsung,dw-mshc-ddr-timing = <1 2>;
> +
> +   slot@0 {
> +   reg = <0>;
> +   bus-width = <8>;
> +   };
> +};
> +
> +&mmc_2 {
> +   status = "okay";
> +   num-slots = <1>;
> +   supports-highspeed;
> +   card-detect-delay = <200>;
> +   samsung,dw-mshc-ciu-div = <3>;
> +   samsung,dw-mshc-sdr-timing = <2 3>;
> +   samsung,dw-mshc-ddr-timing = <1 2>;
> +
> +   slot@0 {
> +   reg = <0>;
> +   bus-width = <4>;
> +   disable-wp;
> +   };
> +};
> +
> +&uart0 {
> +   status = "okay";
> +};
> +
> +&uart1 {
> +   status = "okay";
> +};
> +
> +&uart2 {
> +   status = "okay";
> +};
> diff --git a/arch/arm/boot/dts/exynos5410.dtsi 
> b/arch/arm/boot/dts/exynos5410.dtsi
> new file mode 100644
> index 000..3839c26
> --- /dev/null
> +++ b/arch/arm/boot/dts/exynos5410.dtsi
> @@ -0,0 +1,206 @@
> +/*
> + * SAMSUNG EXYNOS5410 SoC device tree source
> + *
> + * Copyright (c) 2013 Samsung Electronics Co., Ltd.
> + * http://www.samsung.com
> + *
> + * SAMSUNG EXYNOS5410 SoC device nodes are listed in this file.
> + * EXYNOS5410 based board files can include this file and provide
> + * values for board specfic bindings.
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#include "skeleton.dtsi"
> +#include 
> +
> +/ {
> +   compatible = "samsung,exynos5410", "samsung,exynos5";
> +   interrupt-parent = <&gic>;
> +
> +   cpus {
> +   #address-cells = <1>;
> +   #size-cells = <0>;
> +
> +   CPU0: cpu@0 {
> +   device_type = "cpu";
> +   compatible = "arm,cortex-a15";
> +   reg = <0x0>;
> +   };
> +
> +   CPU1: cpu@1 {
> +   device_type = "cpu";
> +   compatible = "arm,cortex-a15";
> +   reg = <0x1>;
> +   };
> +
> +   CPU2: cpu@2 {
> +   device_type = "cpu";
> +   compatible = "arm,cortex-a15";
> +   reg = <0x2>;
> + 

[PATCH] spi: spi-s3c64xx.c Remove unused argument.

2013-03-26 Thread Matthias Brugger
The pointer to the driver data is never used to get the slave
controller data. We can delete the unused argument from the function.

Signed-off-by: Matthias Brugger 
---
 drivers/spi/spi-s3c64xx.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index e862ab8..7f5f8ee 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -817,7 +817,6 @@ static int s3c64xx_spi_unprepare_transfer(struct spi_master 
*spi)
 }
 
 static struct s3c64xx_spi_csinfo *s3c64xx_get_slave_ctrldata(
-   struct s3c64xx_spi_driver_data *sdd,
struct spi_device *spi)
 {
struct s3c64xx_spi_csinfo *cs;
@@ -874,7 +873,7 @@ static int s3c64xx_spi_setup(struct spi_device *spi)
 
sdd = spi_master_get_devdata(spi->master);
if (!cs && spi->dev.of_node) {
-   cs = s3c64xx_get_slave_ctrldata(sdd, spi);
+   cs = s3c64xx_get_slave_ctrldata(spi);
spi->controller_data = cs;
}
 
-- 
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html