@@ -486,26 +486,26 @@ ssize_t tpm_transmit_cmd(struct tpm_chip *chip, const void *cmd, int len,
486
486
unsigned int flags , const char * desc );
487
487
ssize_t tpm_getcap (struct tpm_chip * chip , __be32 subcap_id , cap_t * cap ,
488
488
const char * desc );
489
- extern int tpm_get_timeouts (struct tpm_chip * );
490
- extern void tpm_gen_interrupt (struct tpm_chip * );
489
+ int tpm_get_timeouts (struct tpm_chip * );
490
+ void tpm_gen_interrupt (struct tpm_chip * );
491
491
int tpm1_auto_startup (struct tpm_chip * chip );
492
- extern int tpm_do_selftest (struct tpm_chip * );
493
- extern unsigned long tpm_calc_ordinal_duration (struct tpm_chip * , u32 );
494
- extern int tpm_pm_suspend (struct device * );
495
- extern int tpm_pm_resume (struct device * );
496
- extern int wait_for_tpm_stat (struct tpm_chip * , u8 , unsigned long ,
497
- wait_queue_head_t * , bool );
492
+ int tpm_do_selftest (struct tpm_chip * chip );
493
+ unsigned long tpm_calc_ordinal_duration (struct tpm_chip * chip , u32 ordinal );
494
+ int tpm_pm_suspend (struct device * dev );
495
+ int tpm_pm_resume (struct device * dev );
496
+ int wait_for_tpm_stat (struct tpm_chip * chip , u8 mask , unsigned long timeout ,
497
+ wait_queue_head_t * queue , bool check_cancel );
498
498
499
499
struct tpm_chip * tpm_chip_find_get (int chip_num );
500
500
__must_check int tpm_try_get_ops (struct tpm_chip * chip );
501
501
void tpm_put_ops (struct tpm_chip * chip );
502
502
503
- extern struct tpm_chip * tpm_chip_alloc (struct device * dev ,
504
- const struct tpm_class_ops * ops );
505
- extern struct tpm_chip * tpmm_chip_alloc (struct device * pdev ,
506
- const struct tpm_class_ops * ops );
507
- extern int tpm_chip_register (struct tpm_chip * chip );
508
- extern void tpm_chip_unregister (struct tpm_chip * chip );
503
+ struct tpm_chip * tpm_chip_alloc (struct device * dev ,
504
+ const struct tpm_class_ops * ops );
505
+ struct tpm_chip * tpmm_chip_alloc (struct device * pdev ,
506
+ const struct tpm_class_ops * ops );
507
+ int tpm_chip_register (struct tpm_chip * chip );
508
+ void tpm_chip_unregister (struct tpm_chip * chip );
509
509
510
510
void tpm_sysfs_add_device (struct tpm_chip * chip );
511
511
@@ -532,8 +532,8 @@ ssize_t tpm2_get_tpm_pt(struct tpm_chip *chip, u32 property_id,
532
532
u32 * value , const char * desc );
533
533
534
534
int tpm2_auto_startup (struct tpm_chip * chip );
535
- extern void tpm2_shutdown (struct tpm_chip * chip , u16 shutdown_type );
536
- extern unsigned long tpm2_calc_ordinal_duration (struct tpm_chip * , u32 );
537
- extern int tpm2_gen_interrupt (struct tpm_chip * chip );
538
- extern int tpm2_probe (struct tpm_chip * chip );
535
+ void tpm2_shutdown (struct tpm_chip * chip , u16 shutdown_type );
536
+ unsigned long tpm2_calc_ordinal_duration (struct tpm_chip * chip , u32 ordinal );
537
+ int tpm2_gen_interrupt (struct tpm_chip * chip );
538
+ int tpm2_probe (struct tpm_chip * chip );
539
539
#endif
0 commit comments