x86: mtrr: Fix function descriptions
authorWolfgang Wallner <wolfgang.wallner@br-automation.com>
Tue, 23 Mar 2021 09:39:09 +0000 (10:39 +0100)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 15 Apr 2021 02:43:17 +0000 (10:43 +0800)
Fix copy/paste errors in the descriptions of mtrr_close () and mtrr_set().

Signed-off-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/include/asm/mtrr.h

index 3a98aac..384672e 100644 (file)
@@ -103,7 +103,7 @@ struct mtrr_info {
 void mtrr_open(struct mtrr_state *state, bool do_caches);
 
 /**
- * mtrr_open() - Clean up after adjusting MTRRs, and enable them
+ * mtrr_close() - Clean up after adjusting MTRRs, and enable them
  *
  * This uses the structure containing information returned from mtrr_open().
  *
@@ -170,7 +170,7 @@ void mtrr_read_all(struct mtrr_info *info);
 int mtrr_set_valid(int cpu_select, int reg, bool valid);
 
 /**
- * mtrr_set() - Set the valid flag for a selected MTRR and CPU(s)
+ * mtrr_set() - Set the base address and mask for a selected MTRR and CPU(s)
  *
  * @cpu_select: Selected CPUs (either a CPU number or MP_SELECT_...)
  * @reg: MTRR register to write (0-7)