Re: [PATCH v9 4/8] tpm: rename chip->dev to chip->pdev

From: Peter Hüwe
Date: Thu Dec 04 2014 - 15:44:33 EST


Am Donnerstag, 4. Dezember 2014, 06:55:14 schrieb Jarkko Sakkinen:
> Rename chip->dev to chip->pdev to make it explicit that this not the
> character device but actually represents the platform device.
>
> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx>
> ---
> drivers/char/tpm/tpm-chip.c | 4 ++--
> drivers/char/tpm/tpm-dev.c | 10 +++++-----
> drivers/char/tpm/tpm-interface.c | 29 +++++++++++++++--------------
> drivers/char/tpm/tpm-sysfs.c | 6 +++---
> drivers/char/tpm/tpm.h | 4 ++--
> drivers/char/tpm/tpm_atmel.c | 14 +++++++-------
> drivers/char/tpm/tpm_i2c_atmel.c | 16 ++++++++--------
> drivers/char/tpm/tpm_i2c_infineon.c | 6 +++---
> drivers/char/tpm/tpm_i2c_nuvoton.c | 22 +++++++++++-----------
> drivers/char/tpm/tpm_i2c_stm_st33.c | 14 +++++++-------
> drivers/char/tpm/tpm_infineon.c | 22 +++++++++++-----------
> drivers/char/tpm/tpm_nsc.c | 20 ++++++++++----------
> drivers/char/tpm/tpm_ppi.c | 4 ++--
> drivers/char/tpm/tpm_tis.c | 14 +++++++-------
> 14 files changed, 93 insertions(+), 92 deletions(-)
>
:(

With CONFIG_OF set I get a compile error.

drivers/char/tpm/tpm_i2c_stm_st33.c: In Funktion »tpm_stm_i2c_of_request_resources«:
drivers/char/tpm/tpm_i2c_stm_st33.c:649:3: Fehler: Inkompatibler Typ für Argument 1 von »dev_err«
In file included from include/linux/pci.h:30:0,
from drivers/char/tpm/tpm_i2c_stm_st33.c:32:
include/linux/device.h:1044:5: Anmerkung: »const struct device *« erwartet, aber Argument hat Typ »struct device«
drivers/char/tpm/tpm_i2c_stm_st33.c:662:3: Fehler: Inkompatibler Typ für Argument 1 von »dev_err«
In file included from include/linux/pci.h:30:0,
from drivers/char/tpm/tpm_i2c_stm_st33.c:32:
include/linux/device.h:1044:5: Anmerkung: »const struct device *« erwartet, aber Argument hat Typ »struct device«
scripts/Makefile.build:263: recipe for target 'drivers/char/tpm/tpm_i2c_stm_st33.o' failed
make[3]: *** [drivers/char/tpm/tpm_i2c_stm_st33.o] Error 1
scripts/Makefile.build:404: recipe for target 'drivers/char/tpm' failed
make[2]: *** [drivers/char/tpm] Error 2
scripts/Makefile.build:404: recipe for target 'drivers/char' failed
make[1]: *** [drivers/char] Error 2
Makefile:929: recipe for target 'drivers' failed
make: *** [drivers] Error 2


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