@@ -190,7 +190,9 @@ struct hrt {
190190 u32 reserved2 ;
191191} __attribute__ ((packed ));
192192
193- /* offsets to the hotplug resource table registers based on the above structure layout */
193+ /* offsets to the hotplug resource table registers based on the above
194+ * structure layout
195+ */
194196enum hrt_offsets {
195197 SIG0 = offsetof(struct hrt , sig0 ),
196198 SIG1 = offsetof(struct hrt , sig1 ),
@@ -217,7 +219,9 @@ struct slot_rt {
217219 u16 pre_mem_length ;
218220} __attribute__ ((packed ));
219221
220- /* offsets to the hotplug slot resource table registers based on the above structure layout */
222+ /* offsets to the hotplug slot resource table registers based on the above
223+ * structure layout
224+ */
221225enum slot_rt_offsets {
222226 DEV_FUNC = offsetof(struct slot_rt , dev_func ),
223227 PRIMARY_BUS = offsetof(struct slot_rt , primary_bus ),
@@ -286,8 +290,8 @@ struct event_info {
286290struct controller {
287291 struct controller * next ;
288292 u32 ctrl_int_comp ;
289- struct mutex crit_sect ; /* critical section mutex */
290- void __iomem * hpc_reg ; /* cookie for our pci controller location */
293+ struct mutex crit_sect ; /* critical section mutex */
294+ void __iomem * hpc_reg ; /* cookie for our pci controller location */
291295 struct pci_resource * mem_head ;
292296 struct pci_resource * p_mem_head ;
293297 struct pci_resource * io_head ;
@@ -299,7 +303,7 @@ struct controller {
299303 u8 next_event ;
300304 u8 interrupt ;
301305 u8 cfgspc_irq ;
302- u8 bus ; /* bus number for the pci hotplug controller */
306+ u8 bus ; /* bus number for the pci hotplug controller */
303307 u8 rev ;
304308 u8 slot_device_offset ;
305309 u8 first_slot ;
@@ -458,7 +462,6 @@ static inline char *slot_name(struct slot *slot)
458462 * return_resource
459463 *
460464 * Puts node back in the resource list pointed to by head
461- *
462465 */
463466static inline void return_resource (struct pci_resource * * head , struct pci_resource * node )
464467{
@@ -575,13 +578,12 @@ static inline u8 read_slot_enable(struct controller *ctrl)
575578}
576579
577580
578- /*
581+ /**
579582 * get_controller_speed - find the current frequency/mode of controller.
580583 *
581584 * @ctrl: controller to get frequency/mode for.
582585 *
583586 * Returns controller speed.
584- *
585587 */
586588static inline u8 get_controller_speed (struct controller * ctrl )
587589{
@@ -607,14 +609,13 @@ static inline u8 get_controller_speed(struct controller *ctrl)
607609}
608610
609611
610- /*
612+ /**
611613 * get_adapter_speed - find the max supported frequency/mode of adapter.
612614 *
613615 * @ctrl: hotplug controller.
614616 * @hp_slot: hotplug slot where adapter is installed.
615617 *
616618 * Returns adapter speed.
617- *
618619 */
619620static inline u8 get_adapter_speed (struct controller * ctrl , u8 hp_slot )
620621{
@@ -719,4 +720,3 @@ static inline int wait_for_ctrl_irq(struct controller *ctrl)
719720}
720721
721722#endif
722-
0 commit comments