diff options
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/i2c/at24rf08c/at24rf08c.c | 2 | ||||
-rw-r--r-- | src/drivers/i2c/at24rf08c/lenovo_serials.c | 2 | ||||
-rw-r--r-- | src/drivers/intel/gma/int15.c | 2 | ||||
-rw-r--r-- | src/drivers/intel/gma/intel_bios.h | 16 | ||||
-rw-r--r-- | src/drivers/intel/wifi/wifi.c | 2 | ||||
-rw-r--r-- | src/drivers/vpd/lib_vpd.h | 42 |
6 files changed, 33 insertions, 33 deletions
diff --git a/src/drivers/i2c/at24rf08c/at24rf08c.c b/src/drivers/i2c/at24rf08c/at24rf08c.c index aa262d743b..4918630ccd 100644 --- a/src/drivers/i2c/at24rf08c/at24rf08c.c +++ b/src/drivers/i2c/at24rf08c/at24rf08c.c @@ -28,7 +28,7 @@ static void at24rf08c_init(struct device *dev) if (!dev->enabled) return; - /* Ensure that EEPROM/RFID chip is not accessible through RFID. + /* Ensure that EEPROM/RFID chip is not accessible through RFID. Need to do it only on 5c. */ if (dev->path.type != DEVICE_PATH_I2C || dev->path.i2c.device != 0x5c) return; diff --git a/src/drivers/i2c/at24rf08c/lenovo_serials.c b/src/drivers/i2c/at24rf08c/lenovo_serials.c index d0d006f8e5..0209bb28b9 100644 --- a/src/drivers/i2c/at24rf08c/lenovo_serials.c +++ b/src/drivers/i2c/at24rf08c/lenovo_serials.c @@ -39,7 +39,7 @@ static int at24rf08c_read_byte(struct device *dev, u8 addr) int t = -1; int j; - /* After a register write AT24RF08C (which we issued in init function) + /* After a register write AT24RF08C (which we issued in init function) sometimes stops responding. Retry several times in case of failure. */ for (j = 0; j < 100; j++) { diff --git a/src/drivers/intel/gma/int15.c b/src/drivers/intel/gma/int15.c index e7c3c71d50..5caa1b38d8 100644 --- a/src/drivers/intel/gma/int15.c +++ b/src/drivers/intel/gma/int15.c @@ -103,7 +103,7 @@ int intel_vga_int15_handler(void) } break; - default: + default: printk(BIOS_DEBUG, "Unknown INT15 function %04x!\n", X86_AX); break; } diff --git a/src/drivers/intel/gma/intel_bios.h b/src/drivers/intel/gma/intel_bios.h index 048985d50b..a6ec487b9b 100644 --- a/src/drivers/intel/gma/intel_bios.h +++ b/src/drivers/intel/gma/intel_bios.h @@ -108,14 +108,14 @@ struct vbios_data { #define BDB_SKIP 254 /* VBIOS private block, ignore */ struct bdb_general_features { - /* bits 1 */ + /* bits 1 */ u8 panel_fitting:2; u8 flexaim:1; u8 msg_enable:1; u8 clear_screen:3; u8 color_flip:1; - /* bits 2 */ + /* bits 2 */ u8 download_ext_vbt:1; u8 enable_ssc:1; u8 ssc_freq:1; @@ -125,17 +125,17 @@ struct bdb_general_features { u8 display_clock_mode:1; u8 rsvd8:1; /* finish byte */ - /* bits 3 */ + /* bits 3 */ u8 disable_smooth_vision:1; u8 single_dvi:1; u8 rsvd9:1; u8 fdi_rx_polarity_inverted:1; u8 rsvd10:4; /* finish byte */ - /* bits 4 */ + /* bits 4 */ u8 legacy_monitor_detect; - /* bits 5 */ + /* bits 5 */ u8 int_crt_support:1; u8 int_tv_support:1; u8 int_efp_support:1; @@ -603,7 +603,7 @@ struct bdb_edp { #define SWF14_PM_APM_12 (0x2 << 16) #define SWF14_PM_APM_11 (0x1 << 16) #define SWF14_HK_REQUEST_MASK 0x0000ffff /* see GR18 6:3 for event type */ - /* if GR18 indicates a display switch */ + /* if GR18 indicates a display switch */ #define SWF14_DS_PIPEB_LFP2_EN (1<<15) #define SWF14_DS_PIPEB_EFP2_EN (1<<14) #define SWF14_DS_PIPEB_TV2_EN (1<<13) @@ -620,9 +620,9 @@ struct bdb_edp { #define SWF14_DS_PIPEA_EFP_EN (1<<2) #define SWF14_DS_PIPEA_TV_EN (1<<1) #define SWF14_DS_PIPEA_CRT_EN (1<<0) - /* if GR18 indicates a panel fitting request */ + /* if GR18 indicates a panel fitting request */ #define SWF14_PFIT_EN (1<<0) /* 0 means disable */ - /* if GR18 indicates an APM change request */ + /* if GR18 indicates an APM change request */ #define SWF14_APM_HIBERNATE 0x4 #define SWF14_APM_SUSPEND 0x3 #define SWF14_APM_STANDBY 0x1 diff --git a/src/drivers/intel/wifi/wifi.c b/src/drivers/intel/wifi/wifi.c index cdce6e2b83..cf0f6d89b3 100644 --- a/src/drivers/intel/wifi/wifi.c +++ b/src/drivers/intel/wifi/wifi.c @@ -265,7 +265,7 @@ static void wifi_pci_dev_init(struct device *dev) val = pci_read_config16(dev, PMCS_DR); if (val & PME_STS) elog_add_event_wake(ELOG_WAKE_SOURCE_PME_WIFI, 0); - } + } } static struct pci_operations pci_ops = { diff --git a/src/drivers/vpd/lib_vpd.h b/src/drivers/vpd/lib_vpd.h index 7a7566b234..156d27939f 100644 --- a/src/drivers/vpd/lib_vpd.h +++ b/src/drivers/vpd/lib_vpd.h @@ -34,8 +34,8 @@ enum { /* export_type */ /* Callback for decodeVpdString to invoke. */ typedef int VpdDecodeCallback(const uint8_t *key, int32_t key_len, - const uint8_t *value, int32_t value_len, - void *arg); + const uint8_t *value, int32_t value_len, + void *arg); /* Container data types */ struct StringPair { @@ -153,53 +153,53 @@ int decodeVpdString( void initContainer(struct PairContainer *container); struct StringPair *findString(struct PairContainer *container, - const uint8_t *key, - struct StringPair ***prev_next); + const uint8_t *key, + struct StringPair ***prev_next); /* If key is already existed in container, its value will be replaced. * If not existed, creates new entry in container. */ void setString(struct PairContainer *container, - const uint8_t *key, - const uint8_t *value, - const int pad_len); + const uint8_t *key, + const uint8_t *value, + const int pad_len); /* merge all entries in src into dst. If key is duplicate, overwrite it. */ void mergeContainer(struct PairContainer *dst, - const struct PairContainer *src); + const struct PairContainer *src); /* subtract src from dst. */ int subtractContainer(struct PairContainer *dst, - const struct PairContainer *src); + const struct PairContainer *src); /* Given a container, encode its all entries into the buffer. */ int encodeContainer(const struct PairContainer *container, - const int max_buf_len, - uint8_t *buf, - int *generated); + const int max_buf_len, + uint8_t *buf, + int *generated); /* Given a VPD blob, decode its entries and push into container. */ int decodeToContainer(struct PairContainer *container, - const int32_t max_len, - const uint8_t *input_buf, - int32_t *consumed); + const int32_t max_len, + const uint8_t *input_buf, + int32_t *consumed); /* Set filter for exporting functions. * If filter is NULL, resets the filter so that everything can be exported. */ int setContainerFilter(struct PairContainer *container, - const uint8_t *filter); + const uint8_t *filter); /* * Remove a key. * Returns VPD_OK if deleted successfully. Otherwise, VPD_FAIL. */ int deleteKey(struct PairContainer *container, - const uint8_t *key); + const uint8_t *key); /* * Returns number of pairs in container. @@ -216,10 +216,10 @@ int lenOfContainer(const struct PairContainer *container); * generated. */ int exportContainer(const int export_type, - const struct PairContainer *container, - const int max_buf_len, - uint8_t *buf, - int *generated); + const struct PairContainer *container, + const int max_buf_len, + uint8_t *buf, + int *generated); void destroyContainer(struct PairContainer *container); |